This is an old revision of the document!
Clear DNS
Difficulty

Very easy
Operating Systems
Windows
XP, 2000, VISTA, 7, 8, 8.1, 10
Open a Command Prompt with Administrative Privileges and type
ipconfig /flushdns | <clippy>ipconfig /flushdns</clippy> |
MAC OS
10.10
Open a Terminal and type
sudo discoveryutil mdnsflushcache | <clippy>sudo discoveryutil mdnsflushcache</clippy> |
sudo dscacheutil -flushcache | <clippy>sudo dscacheutil -flushcache</clippy> |
10.7, 10.8, 10.9
Open a Terminal and type
sudo killall -HUP mDNSResponder | <clippy>sudo killall -HUP mDNSResponder</clippy> |
sudo dscacheutil -flushcache | <clippy>sudo dscacheutil -flushcache</clippy> |
10.5, 10.6
Open a Terminal and type
sudo dscacheutil -flushcache | <clippy>sudo dscacheutil -flushcache</clippy> |
10.4 and earlier
Open a Terminal and type
sudo dscacheutil -flushcache | <clippy>sudo dscacheutil -flushcache</clippy> |
Linux
nscd
Open a Terminal and type
Restart service | service nscd restart | <clippy>service nscd restart</clippy> |
Reload Service | service nscd reload | <clippy>service nscd reload</clippy> |
dnsmasq
Open a Terminal and type
Restart service | service dnsmasq restart | <clippy>service dnsmasq restart</clippy> |
BIND
Open a Terminal and type
Restart service | rndc restart | <clippy>rndc restart</clippy> |
Flash specific domain | rndc flushname domain.tld | <clippy>rndc flushname </clippy> |
Flash view (LAN) | rndc flush lan | <clippy>rndc flush lan</clippy> |
Routers
CISCO
IOS
Switch to enable mode
Clear specific domain | clear host domain.tld | <clippy>clear host </clippy> |
Clear all domains | clear host * | <clippy>clear host *</clippy> |
Juniper
JunOS
Clear all domains | clear dns | <clippy>clear dns</clippy> |
Clear specific domain | clear security dns-cache domain.tld | <clippy>clear security dns-cache </clippy> |
FritzBox
The latest versions of the firmware do not allow for telnet, in those cases a router restart is required
Enable Telnet mode by dialing: #96*7* <clippy>#96*7*</clippy> Connect with a telnet client to the router and type
Stop DNS Service | multid -s | <clippy>multid -s</clippy> |
Start DNS Service | multid | <clippy>multid</clippy> |
Web Browsers
Google Chrome
Visit the following URL
chrome://net-internals/#dns | chrome:net-internals/#dns | <clippy>chrome:net-internals/#dns</clippy> |
In the page click on the Clear host cache button.