Refresh the DNS server method, teaches you to quickly access the new server

 The domain name of the newly constructed website needs to be resolved, but access to DNS resolution service is not always effective for every DNS server, here is a quick way to access the new server:


One is to refresh the native DNS information, and the other is to change the local DNS server. The first method is equivalent to removing the local DNS cache and obtaining DNS information from the ISP again to update the DNS resolution service. This method is also known as refresh DNS cache on the Internet. Refresh the DNS cache so you can get a new domain resolution. Try flushing the DNS cache when you can't access a newly registered domain correctly. Flushing the DNS cache is very simple and should be done at any time.


Flush the DNS cache on different systems as follows.


Microsoft Windows (Windows XP, Windows Me, Windows 2000, Windows 98)


1. Start -- run > -- > type CMD and press enter


2. In the command line window that opens, type ipconfig /flushdns


3. Done! Your Windows DNS cache has been refreshed.


For Microsoft Windows Vista or Windows 7:


1. Click the Microsoft Windows Vista or Windows 7 Start logo in the lower left corner of the screen


2. Click on all programs


3. Click attachment


4. Right-click the command prompt


5. Select to run as administrator


6. In the command line window that opens, type


ipconfig /flushdns


You will see the following confirmation:


Windows IP configuration


The DNS resolution cache has been flushed successfully.


If you are running on Linux, refresh the DNS cache by restarting the NSCD daemon:


To restart the NSCD daemon, enter it in the command line window (terminal)

/etc/rc.d/init.d/nscd restart


After the command is executed, your DNS cache is flushed.

If it's a newer version of Linux, you might want to use the following command:


/etc/init.d/nscd restart


Some will prompt you for administrator privileges, so you need to su or sudo before the command


su /etc/init.d/nscd restartor sudo /etc/init.d/nscd restart


NSCD is not installed. You can use the following command to install Ubuntu. For other Linux versions, please search by yourself


apt-get install nscd


If administrator privileges are required, modify as above. If successful, you will be prompted as follows


Restarting Name Service Cache Daemon nscd [ OK ]

For Mac OS X:


Enter in the command line window (terminal)

lookupd -flushcache


Such as:


Bash - 2.05 - a $lookupd - flushcache


When the command completes, your DNS cache is updated.

Newer Apple Mac OS X systems should use the following command:


type dscacheutil -flushcache


Since I'm not on a Mac, this is not exhaustive.


The other one is to change the DNS server, because no matter how you refresh the DNS, if your ISP's DNS information is not refreshed, you still have the same DNS information as the original one, so we have to change the DNS server to get the updated DNS information, because after changing the domain name information, DNS server information refresh speed varies from place to place.


OpenDNS server is generally used on the Internet, the server addresses are 208.67.220.220 and 208.67.222.222, and Google DNS server is also used, the addresses are 8.8.4.4 and 8.8.8.8




Here's how to update Ubuntu:


Network Connections in the upper right corner - Edit Connections - Select the networking method you use - Edit - IPv4 Settings. Set the method to "Auto... (address only) ". Modify the DNS server below.


I don't know how to modify the DNS server because I don't have a MAC address.


Get new DNS information through the above two methods. If you cannot access your new server, wait for the DNS server information to be updated.


About how to see the new DNS is in effect, you can ping the domain name through the ping command, such as


ping www.mywebsite.com -t

Refresh the DNS server method, teaches you to quickly access the new server Refresh the DNS server method, teaches you to quickly access the new server Reviewed by Love share on 6/17/2021 Rating: 5

No comments:

Share Us

Note: All articles on this site are original, please indicate the source for reprinting
Powered by Blogger.