Flushing DNS cache in Linux

From Pulsed Media Wiki

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