djbdns problems - slow responses

Discussion in 'Server Operation' started by technick, Sep 16, 2008.

  1. technick

    technick New Member

    I am having some issues migrating from my older bind servers to newer, secure cache & djbdns servers. If I attempt to ping inside my network to any address that resolves (local domains for which I host the dns records for) from Server C & Server D, its real slow :confused:. If I ping outside of my network everything is fine.

    Server A & B - dnscache - 172.16.3.10 (cs1.inetdevspace.com) | 172.16.3.11 (cs2.inetdevspace.com)
    • dnscache listens on network interface and forwards all requests for local domans to Servers C&D. Any requests for domains that are not local go directly to root servers.
    Server C & D - djbdns - 172.16.3.12 (ns1.inetdevspace.com) | 172.16.3.13 (ns2.inetdevspace.com)


    Here are some inetdevspaces of the problems with time stamps that show how long its taken to ping.

    Code:
    root@atlantis:~# time ping dslreports.com
    PING dslreports.com (209.123.109.175) 56(84) bytes of data.
    64 bytes from www.dslreports.com (209.123.109.175): icmp_seq=1 ttl=46 time=49.6 ms
    64 bytes from www.dslreports.com (209.123.109.175): icmp_seq=2 ttl=46 time=25.8 ms
    64 bytes from www.dslreports.com (209.123.109.175): icmp_seq=3 ttl=46 time=25.3 ms
    64 bytes from www.dslreports.com (209.123.109.175): icmp_seq=4 ttl=46 time=33.8 ms
    
    --- dslreports.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3003ms
    rtt min/avg/max/mdev = 25.361/33.689/49.681/9.838 ms
    
    real    0m3.244s
    user    0m0.000s
    sys     0m0.000s
    
    Code:
    root@atlantis:~# time ping mail.inetdevspace.com
    PING mail.inetdevspace.com (172.16.3.5) 56(84) bytes of data.
    64 bytes from 172.16.3.5: icmp_seq=1 ttl=64 time=2.30 ms
    64 bytes from 172.16.3.5: icmp_seq=2 ttl=64 time=0.346 ms
    64 bytes from 172.16.3.5: icmp_seq=3 ttl=64 time=0.344 ms
    
    --- mail.inetdevspace.com ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 50009ms
    rtt min/avg/max/mdev = 0.344/0.997/2.302/0.922 ms
    
    real    1m15.180s
    user    0m0.000s
    sys     0m0.004s
    
    If I issue the switch "-n" behind ping (Numeric output only. No attempt will be made to lookup symbolic names for host addresses.) everything works properly. I've also noticed that sending email is taking longer and longer.

    This is what my data file looks like.

    Code:
    #authoritative nameservers
    .inetdevspace.com::ns1.inetdevspace.net:7200
    .inetdevspace.net::ns1.inetdevspace.net:7200
    .inetdevspace.com::ns2.inetdevspace.net:7200
    .inetdevspace.net::ns2.inetdevspace.net:7200
    
    
    #mail exchanger records
    @inetdevspace.com::mail.inetdevspace.com:10
    @inetdevspace.net::mail.inetdevspace.com:10
    
    
    #.com records
    =inetdevspace.com:172.16.3.23:7200
    =main.inetdevspace.com:172.16.3.26:7200
    =mail.inetdevspace.com:172.16.3.5:7200
    
    #.com aliases
    +www.inetdevspace.com:172.16.3.23
    +dev.inetdevspace.com:172.16.3.23
    
    
    #.net records
    =cs1.inetdevspace.net:172.16.3.10:7200
    =cs2.inetdevspace.net:172.16.3.11:7200
    =ns1.inetdevspace.net:172.16.3.12:7200
    =ns2.inetdevspace.net:172.16.3.13:7200
    
    #.net aliases
    +inetdevspace.net:172.16.3.23
    +www.inetdevspace.net:172.16.3.23
    
    Any help would be great, thanks in advance!
    :)
     
  2. technick

    technick New Member

    I figured out my own problem, I was missing reverse lookups in the datafile. I added the following lines to fix things.

    .3.16.172.in-addr.arpa::ns1.inetdevspace.net:7200
    .3.16.172.in-addr.arpa::ns2.inetdevspace.net:7200
     

Share This Page