Search

Please Subscribe

Like it? Share it!

Add to: JBookmarks Add to: Facebook Add to: Mr. Wong Add to: Buzka Add to: Windows Live Add to: Icio Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Folkd Add to: Google

Get Your Gear at Amazon

Sponsors

HostMonster.com
HostMonster! Reliable and Affordable Web Hosting!
BlueHost.com
BlueHost, A Great Web Hosting solution.
Amazon.com - Hot Deals
Amazon.com! Check out computer related hot deals!
Get Clicky - Web Analytics
Cool Web Analytics Tool! Give it a try and let me know what you think
Upgrade Memory
Upgrade Your Ram! Simple tools to help find the correct memory stick at a great price.
Home Linux Networking Helpful Commands For Managing And Trouble Shooting a BIND (DNS) Server in Ubuntu Linux
Helpful Commands For Managing And Trouble Shooting a BIND (DNS) Server in Ubuntu Linux E-mail

BIND is a DNS service that is used on many different distributions of Linux. BIND stands for Berkeley Internet Name Domain. When I setup my home network, I wanted to have a local DNS server. I installed BIND on my 9.04 Ubuntu server.

 

This is a list of commands that I have found helpful for trouble shooting and managing my DNS server.

(Note: All of the commands are being executed in a terminal window.Copy and paste the code after the # symbol into a terminal window.) 

 

 

How to find what version of BIND you are running:

# nslookup -q=txt -class=CHAOS version.bind. 0

 

How to Restart BIND DNS service:

# service nscd restart

# sudo /etc/init.d/nscd restart

 

 

 

How to Start and Stop BIND DNS service:

If you are running BIND v.8 or less:

# ndc stop

# ndc start

 

If you are running BIND v.9:

# rndc stop

# rndc start

 

How to view the cache of the BIND:

For this we will create a dump file and then will need to view the file.

Creating the Dump file:

# sudo rndc dumpdb –cache

 

(Note: This will create a dump file called named_dump.db. This is often located in /var/cache/bind.)

 

Viewing the dump file:

# cat /var/cache/bind/named_dump.db

 

How to Clear the Cache of BIND:

You can just restart the service using the restart command.

 

# sudo /etc/init.d/nscd restart

 

If you think some other commands should be added to the list please send me an email and let me know. Thanks for reading!

Bookmark with:

Deli.cio.us    Digg    reddit    Facebook    StumbleUpon    Newsvine
 


Another articles:


mixedperic.com
Feedback Form