Linux/Windows/Mac refresh DNS cache

  

Sometimes in the case of a bad network environment, the A record of the domain name is modified, but the local DNS is not actively updated. This time we need to manually refresh the local DNS record cache, the method is recorded as follows:
Windows
(XP, ME, 2000, 98) System:

1. Start &mdash ;—>Run ——>Enter cmd and press Enter 2. In the command line window that opens, type ipconfig /flushdns3. Done! Your Windows DNS cache has been refreshed.

Windows Vista or Windows 7 system: 1. Open a command prompt and select Run as administrator. 2. In the command line window that opens, type ipconfig /flushdns and you will see the following confirmation message: The Windows IP configuration has successfully refreshed the DNS resolution cache.

Linux: Refreshing the DNS cache requires restarting the nscd daemon:

1. To restart the nscd daemon, type /etc/rc.d/init.d in the command line window. /nscd restart2. After the command is executed, your DNS cache is refreshed. If it is a newer Linux distribution, you may need to use the following command: /etc/init.d/nscd restart

Mac OS X Apple System: 1. Enter lookupd -flushcache in the command line window (terminal) For example: bash$ lookupd -flushcache

2. After the command is executed, your DNS cache is updated. Newer Apple Mac OS X systems should use the following command: type dscacheutil -flushcache

Copyright © Windows knowledge All Rights Reserved