Showing posts with label flush dns. Show all posts
Showing posts with label flush dns. Show all posts

Monday, November 18, 2013

Flush DNS on Linux

On Windows Operating system to delete all DNS query result we use to be use command IPCONFIG /FLUSHDNS, in Linux there's serveral command to flush DNS :

1. Flush dns by restarting NSCD service : 


  • $ sudo /etc/init.d/nscd restart
  • # service nscd restart
  • # service nscd reload

2. Flush dnsmasq DNS cache :

  • $ sudo /etc/init.d/dnsmasq restart
  • # service dnsmasq restart

3. Flush Caching BIND server DNS Cache :

  • # /etc/init.d/named restart
  • # rndc restart
  • # rndc exec