ubuntu linux dns

Install nscd using the following:

sudo apt-get install nscd

Flush DNS Cache in Ubuntu by restarting the nscd

sudo /etc/init.d/nscd restart

to flush dns:

sudo /etc/init.d/dns-clean restart

You can also use this command:

sudo /etc/init.d/networking force-reload

In addition, to flush nscd dns cache:

sudo /etc/init.d/nscd restart

To flush dnsmasq dns cache:

sudo /etc/init.d/dnsmasq restart

If you use BIND this should flush DNS:

sudo /etc/init.d/named restart

or

sudo rndc restart

or

sudo rndc exec

BIND (>= v9.3.0) supports flushing records from a particular domain and also the lan and wan views.source Examples:

   sudo rndc flush

   sudo rndc flushname askubuntu.com

   sudo rndc flush lan

   sudo rndc flush wan

 

No Comments

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *