Clear the Dns Cache

written by Admin

Posted on 2014-05-05


I want to clear my local dns cache.


On Windows open a command prompt and type:
C:\> ipconfig /flushdns

On Mac OS oper a Terminal (Applications - Utility) and type:
# sudo killall -HUP mDNSResponder (MacOS 10.7 and 10.8)
# sudo dscacheutil -flushcache (MacOS 10.5 and 10.6)

On Linux run one of the following in a shell:
# /etc/init.d/nscd restart
# /etc/init.d/dnsmasq restart
# /etc/init.d/named restart



Leave a Comment:



We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!