If you are unable to dig properly to your own Test DNS Server (Lab only, not a live DNS Server), here are some tips -
- Check whether the named service is running.
- Check whether the FQDN is properly set in /etc/sysconfig/network and /etc/hosts
- It has to be ensured that the only nameserver IP in /etc/resolv.conf is the IP of the test DNS Server.
- Check whether the zone files in /var/named have group ownership of named.
[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...
[root@ns1 named]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=ns1.testdom.inv GATEWAY=192.168.1.3 [root@ns1 named]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.13 ns1.testdom.inv ns1
[root@ns1 named]# cat /etc/resolv.conf nameserver 192.168.1.13
[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