Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2011, 09:19 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 29

Rep: Reputation: 0
How can I tell if BIND/ DNS is running properly?

I've tried setting up BIND from a fresh install. I've followed a few tutorials (all seem to follow a similar routine), but it doesn't appear to work properly.

This is what happens when I query my domain:

This is my named.conf file:

// named.conf for Red Hat caching-nameserver
options {
   directory "/var/named";
   dump-file "/var/named/data/cache_dump.db";
   statistics-file "/var/named/data/named_stats.txt";
 * If there is a firewall between you and nameservers you want
 * to talk to, you might need to uncomment the query-source
 * directive below.  Previous versions of BIND always asked
 * questions using port 53, but BIND 8.1 uses an unprivileged
 * port by default.
 // query-source address * port 53;

// a caching only nameserver config
controls {
 inet allow { localhost; } keys { rndckey; };

zone "localhost" IN {
   type master;
   file "";
   allow-update { none; };

zone "" IN {
   type master;
   file "/var/named/";
   allow-update { none; };

zone "" IN {
   type master;
   file "/var/named/52.223.41.rev";
   allow-update { none; };

include "/etc/rndc.key";
And this is the file:

$TTL            1800 ;

@   IN  SOA ( 
            2010062801  ; Serial
            10800   ; Refresh
            3600    ; Retry
            604800  ; Expire
            86400   ; Minimum
) IN  NS IN  NS                    IN  A                IN  A                IN  A               IN  A                IN  A                IN  A                    IN  MX 10
I've restarted the named service (and even rebooted the server).

I've compared both files to examples and they don't appear to be any different - I'm at a loss as to what is wrong or where I should start to troubleshoot it.
Old 02-26-2011, 03:04 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
well you need to look in the relevant log files, that's always the place to start. check /var/log/messages (by default) for issues about the config, you could also look to do zone transfers of the zones to see exactly what it's aware of (dig -t axfr localhost)

Here's an example zone file from one of my systems:
$TTL 300 ; 5 minutes IN SOA (
1296929899 ; serial
300 ; refresh (10 minutes)
1800 ; retry (30 minutes)
604800 ; expire (1 week)
300 ; minimum (5 minutes)
srv01 A
srv02 A
srv03 A
rpm CNAME srv03

There are plenty of style issues between these but not necessarily causing issues. The main point I see that its stopping the request is the resolution of the ns1 and ns2 records. Where are these defined outside of this server? I'd guess that they are not and so your server is still totally isolated. At a basic level, is traffic every even hitting your machine? Pretty irrelevant what your config is if nothing else knows to ome to ask you any questions. Your domain registrar needs to hold the details of what name servers to forward too, and they appear to, but there is no A record available online for these already, so you need to provide them somewhere outisde of your server otherwise you've just got a loop - how do you get to the name server if the only thing that tells you where the name server is the name server itself!

Personally if you are more concerned with providing the resulting website than running DNS... don't run DNS. I use to host DNS records nice and simply, althoguh your registrar may be able to provide a similar service for you as part of you sign up terms.
1 members found this post helpful.
Old 03-16-2011, 11:20 AM   #3
LQ Newbie
Registered: Dec 2010
Posts: 29

Original Poster
Rep: Reputation: 0
I forgot to add my thanks for this reply... Thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind.DNS Help needed on Split DNS server manya Linux - Server 3 10-28-2010 09:39 AM
Multiple RHEL 5 Servers running Bind - joining Windows AD and DNS folkrm Linux - Server 1 01-13-2010 05:02 PM
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server texmansru47 Linux - Networking 12 07-10-2008 08:06 PM
LXer: DNS: The Bind Leading the Bind LXer Syndicated Linux News 0 06-15-2006 11:33 PM
running bind for dns notolerance Linux - Newbie 4 11-11-2004 04:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration