Article ID: 119972, created on Feb 4, 2014, last review on May 11, 2014

Symptoms

Server could not resolve some domains.

Resolution

  1. Check than zone file is present on tne server

        [root@ns2 ~]# ll /hsphere/local/var/named/zones16/30/domain.com
        ls: /hsphere/local/var/named/zones16/30/domain.com: No such file or directory  
    

    NOTE: The path to the zone file you can find in Zone_*.conf files in the /hsphere/local/var/named/ directory

  2. Try to reload zone from Master server

    [root@ns2 ~]# rndc retransfer domain.com
    

    If this has no effect and file zone still does not exist go to step 3.

    [root@ns2 ~]# ll /hsphere/local/var/named/zones16/30/chasepro.com
    ls: /hsphere/local/var/named/zones16/30/chasepro.com: No such file or directory
    
  3. Try co recognize the root cause by stracing rndc retransfer command.

    [root@ns2 ~]# strace rndc retransfer domain.com
    
    
    //--------------------8<------------------------//   
    
    
    getsockopt(20, SOL_SOCKET, SO_ERROR, [690635139243311104], [4]) = 0
    gettimeofday({1391487123, 609822}, NULL) = 0
    recvmsg(20, 0x7fffc73bf6e0, 0)          = -1 EAGAIN (Resource temporarily unavailable)     <----!!!!
    epoll_ctl(3, EPOLL_CTL_ADD, 20, {EPOLLIN, {u32=20, u64=20}}) = 0
    sendmsg(20, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\217\0\0\0\1\5_auth\2\0\0\0 \4hmd5\1\0\0\0\26Q11"..., 147}], msg_controllen=0, msg_flags=0}, 0) = 147
    epoll_wait(3, {{EPOLLIN, {u32=20, u64=20}}}, 64, 4294967295) = 1
    epoll_ctl(3, EPOLL_CTL_DEL, 20, {EPOLLIN, {u32=20, u64=20}}) = 0
    
    
    //-------------------->8---------------------//   
    

    If you see Resource temporarily unavailable theck that Master NS server is working fine and there are no connection problems.

    telnet ns1.nameserver.com 53
    Trying 10.10.10.1...
    telnet: connect to address 10.10.10.1: Connection refused
    telnet: Unable to connect to remote host: Connection refused
    

    So the master server is not able to accept connections.

  4. GoTo Master server by ssh and try to restart named service.

    [root@ns1 ~]# service named restart
    Stopping named                               [ OK ]
    Starting named                               [ OK ]
    
  5. Check that ns1 is accessible from ns2

    [root@ns2 ~]# telnet ns1.nameserver.com 53
    Trying 10.10.10.1...
    Connected to ns1.nameserver.com (10.10.10.1).
    Escape character is '^]'.
    
  6. Try to retransfer zone again

    [root@ns2 ~]# rndc retransfer chasepro.com
    
  7. Check that file zone has been retransfered

    [root@ns2 ~]# ll /hsphere/local/var/named/zones16/30/domain.com
    -rw-r--r-- 1 named named 689 Feb  3 22:18 /hsphere/local/var/named/zones16/30/domain.com
    
  8. Restart ns2 and check that the domain has been resolved correctly

    [root@ns2 ~]# service named restart
    Stopping named                               [ OK ]
    Starting named                               [ OK ]
    
    
    [root@ns2 ~]# nslookup domain.com localhost
    Server:         localhost
    Address:        127.0.0.1#53
    
    
    Name:   domain.com
    Address: 10.11.21.220
    

Search Words

BIND

Slave DNS server

6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF