Flush dns to get a new name resolution. Also flush dns cache when you can’t access a newly registered domain name. You can simply flush your dns cache anytime to get new entry. So, Flush your dns cache now.
To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000):-
- Start -> Run -> type cmd
- in command prompt, type ipconfig /flushdns
- Done! You Window DNS cache has just been flush.
To flush the DNS cache in Linux, restart the nscd daemon:-
- To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
- Once you run the command your linux DNS cache will flush.
To flush the DNS cache in Mac OS X Leopard:-
- type lookupd -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ lookupd -flushcache
- Once you run the command your DNS cache (in Mac OS X) will flush.
To flush the DNS cache in Mac OS X:-
- type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ dscacheutil -flushcache
- Once you run the command your DNS cache (in Mac OS X Leopard) will flush.




on SLES 10
rcnscd restart
This really worked for me. Sometimes clearing DNS cache will help you see the recent changes made to any site you visit.
Hey,
I mistakenly typed dscacheutil – flushcache. I put a dash and a space after it. Now is that an issue or something. Is there any way I can undo that.
Hope to hear soon.
Thanks
other comments on Linux flushing are correct. simply restarting nscd will *NOT* flush the cache.
# nscd -i hosts
will invalidate the hosts table on CentOS/RHEL, but *ONLY* if the daemon is running in the first place. so don’t bother restarting, stopping or starting.
just run this – as Wes has already said.
The Linux variant is just wrong. I don’t know of *any* distribution that’s using nscd as default, Darkmage’s variant only works for Debian(+based?), and some distributions don’t have any builtin mechanism at all.
Please make clear for which distributions your code works, and don’t claim it works “in Linux”. It doesn’t.
The Linux command listed does not work on RHEL/CentOS. Here’s the correct command:
nscd -i hosts
The instructions for Linux are incorrect. The Linux kernel does not do DNS caching. User applications do, such as nscd daemon, but if you didn’t install it in the first place, your not running it, since it is not part of the standard setup. Applications such as Firefox also perform DNS caching by default.
These instructions for Mac OS X and Leopard are mixed up
To flush the DNS cache in Mac OS X Leopard:-
– type lookupd -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ lookupd -flushcache
– Once you run the command your DNS cache (in Mac OS X) will flush. <——-
To flush the DNS cache in Mac OS X:-
– type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ dscacheutil -flushcache
– Once you run the command your DNS cache (in Mac OS X Leopard) will flush. < ——
For linux this is the proper one: sudo /etc/init.d/dns-clean start
I believe you have the instructions for OSX and OSX-Leopard+ backwards. dscacheutil -flushcache is used in Leopard and SnowLeopard.
its not working on RHEL, enen though i have restarted, named, network service and nsdc.
thanks