Go Back   HajarBos Community > Webmaster Lounge > About DNS

Donation Goal
Goal amount for this month: 30 USD, Received: 0 USD (0%)
Donate NowDonate HajarBos
Donate to support HajarBos Network, all donation will be use for server cost

How to Flush DNS in Linux

This is a discussion on How to Flush DNS in Linux inside About DNS forums : In many builds of Linux the nscd daemon is used to manage the client DNS cache. For builds that use ...


Post New ThreadReply
 
Bookmark and Share LinkBack Thread Tools Rate Thread
Old 05-08-2012, 08:20 PM   #1
Site Manager
 
dendik's Avatar
 
Website:
Join Date: May 2010
Location: Surabaya
Posts: 503
Rep Power: 10
dendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond reputedendik has a reputation beyond repute
Default How to Flush DNS in Linux


In many builds of Linux the nscd daemon is used to manage the client DNS cache. For builds that use this method, restarting the nscd daemon is the primary means to flush DNS cache. Other builds of Linux may run BIND or dnsmasq as the primary name service.

Steps to Flush NSCD DNS Cache

NSCD is used to speed up consecutive access to the same data and improve overall system performance.

1. Enter “$sudo /etc/init.d/nscd restart and press the “enter” or “return” key.

2. Once nscd restarts the DNS will be flushed. Alternatively, you can enter “# service nscd restart.”

Steps to Flush DNSMASQ DNS Cache

DNMASQ is used as a lightweight DHCP, TFTP, and DNS server. It was primarily designed to provide DHCP and DNS services to a LAN, accepts DNS queries, and answers them. It is also installed on a number of routers to cache DNS queries or look-ups.

1. Enter “$ sudo /etc/init.d/dnsmasq restart”

2. Once dnsmasq restarts the DNS will be flushed.

Steps to Flush BIND Server DNS Cache

Similar to nscd and dnsmasq, to flush DNS cache in BIND simply requires a restart to clear the cache.

1. Enter “# /etc/init.d/named restart” followed by pressing the “enter” or “return” key.

2. Once BIND completes restart the DNS will be flushed.


Goodluck
__________________
  • Help us grow ,Donate to HajarBos
  • Please Hit the button if you like my post

Last edited by dendik; 05-08-2012 at 08:22 PM.
dendik is offline   Reply With Quote
Reply

Tags
flush


Thread Tools
Rate This Thread
Rate This Thread:



All times are GMT +1. The time now is 01:01 AM.
Hosted by Dikz Network
Copyright © 2010 HajarBos Network

Flasher Community DikzNet Dendik.id Dikz Network Dendik.com
DDLRank Your Link Your Link Your Link Whois Checker