Clear DNS

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

MAC OS

10.10

Open a Terminal and type

  • sudo discoveryutil mdnsflushcache
  • sudo dscacheutil -flushcache

10.7, 10.8, 10.9

Open a Terminal and type

  • sudo killall -HUP mDNSResponder
  • sudo dscacheutil -flushcache

10.5, 10.6

Open a Terminal and type

  • sudo dscacheutil -flushcache

10.4 and earlier

Open a Terminal and type

  • sudo dscacheutil -flushcache

Linux

nscd

Open a Terminal and type

  • Restart service
    service nscd restart
  • Reload Service
    service nscd reload

dnsmasq

Open a Terminal and type

  • Restart service
     service dnsmasq restart

BIND

Open a Terminal and type

  • Restart service
    rndc restart
  • Flash specific domain
    rndc flushname domain.tld
  • Flash view (LAN)
    rndc flush lan

Routers

CISCO

IOS

Switch to enable mode

  • Clear specific domain
    clear host domain.tld
  • Clear all domains
    clear host *

Juniper

JunOS

  • Clear all domains
    clear dns
  • Clear specific domain
    clear security dns-cache domain.tld

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* Connect with a telnet client to the router and type

  • Stop DNS Service
    multid -s
  • Start DNS Service
    multid

Web Browsers

Google Chrome

Visit the following URL <shx> * chrome:net-internals/#dns <sxh>chrome:net-internals/#dns</sxh>

In the page click on the Clear host cache button.

/home/www/sites/esgr.in/wiki/data/attic/network/clear_dns.1487236202.txt.gz · Last modified: 2017/02/16 09:10 by eServices Greece