Flush DNS


#1

DD-WRT

# stopservice dnsmasq
# startservice dnsmasq

macOS

Sierra + High Sierra (10.12-10.13)

sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache

El Capitan (10.11)

sudo killall -HUP mDNSResponder

Yosemite (10.10)

10.10.4+

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

10.10.+

sudo discoveryutil udnsflushcaches

Mavericks (10.9)

dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Lion + Moutain Lion (10.7-10.8)

sudo killall -HUP mDNSResponder

Leopard + Snow Leopard (10.5-10.6)

dscacheutil -flushcache

Tiger (10.4)

lookupd -flushcache

Linux

mostly restart name service caching daemon

sudo service nscd restart

Windows

C:\> ipconfig /flushdns