Troubleshooting DNS Server

Related to Previous Article:

If you are unable to dig properly to your own Test DNS Server (Lab only, not a live DNS Server), here are some tips -

  1. Check whether the named service is running.

  2. [root@ns1 named]# service named status
    version: 9.7.0-P2-RedHat-9.7.0-5.P2.el6
    CPUs found: 1
    worker threads: 1
    number of zones: 17
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    recursive clients: 0/0/1000
    tcp clients: 0/100
    server is up and running
    named (pid  1235) is running...

  3. Check whether the FQDN is properly set in /etc/sysconfig/network and /etc/hosts

  4. [root@ns1 named]# cat /etc/sysconfig/network
    [root@ns1 named]# cat /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6    ns1.testdom.inv    ns1

  5. It has to be ensured that the only nameserver IP in /etc/resolv.conf is the IP of the test DNS Server.

  6. [root@ns1 named]# cat /etc/resolv.conf 

  7. Check whether the zone files in /var/named have group ownership of named.

  8. [root@ns1 named]# ls -l /var/named/testdom-*
    -rw-r----- 1 root named 325 May 31 11:16 /var/named/testdom-fz
    -rw-r----- 1 root named 318 May 31 11:12 /var/named/testdom-rz