Is your site opening sometimes and not others? Can’t find the reason? If so, it would be beneficial to read what we write here. After researching support tickets sent to the help desk, we noticed that most questions people ask are about nameservers, TTL periods, and DNS-related issues, and we decided to prepare a document about this topic in a way everyone can understand.
When you transfer your websites from one server to another, or when you change the IP address of the site on the same server without moving it, you will experience access issues for a certain period. If you don’t know the technical reason for this, don’t worry — actually only you are unable to access the site at that moment :)
DNS (Domain Name System) servers determine which server IP address domain names will go to. Thanks to DNS, for example, you can get the IPv4 equivalent of the ni.net.tr address and access this site. Your computer needs to connect to DNS servers to resolve the IP information of the ni.net.tr address.
When your computer resolves the ni.net.tr address, it records some information related to ni.net.tr when it connects to the DNS service of ni.net.tr. Among this information are also the TTL periods that cause you not being able to access your site for a certain period when you change the IP address.
If you are a Windows user, typing ipconfig /displaydns in the command prompt will show you what information you received from which DNS server. The TTL period we talk about is the “Time to Live” field. If your site’s TTL period is 604800, when an example user tries to enter your site, they receive this TTL period along with the records. For 604800 seconds (7 days), this user will not request information from the DNS server again when accessing your site.
When you change your site’s IP address, the example user cannot access your site because the TTL period saved in their computer’s DNS cache has not expired. Until the TTL expires, the user tries to open the site from the old IP address. However, this problem only applies to this example user. Another user who has never visited your site before can access the new IP on their first visit.
When you encounter such a problem, it helps to clear the DNS cache. You can clear the DNS resolver cache with:
ipconfig /flushdns
If you still cannot access despite all this, you can check the following sites to see if your site is accessible:
http://anonymouse.org
http://host-tracker.com/
If you have a high-traffic website and need to change your IP address, you can shorten your TTL periods before making the change to minimize downtime, wait for the old TTL period to expire, and then make the change. After the operation is complete, it is beneficial to restore this period to its original value to avoid putting too much load on your DNS service.
Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!