Flushing DNS cache in Linux

From Pulsed Media Wiki
Revision as of 11:08, 16 December 2011 by Nucode (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In most Debian based systems you can simply do:

/etc/init.d/bind restart

or

/etc/init.d/bind9 restart

to restart bind, which is a DNS daemon handling the caching (See /etc/resolv.conf). On some systems it is named, ie. on RHEL.

/etc/init.d/named restart