Re: strange delay while dns resolve

From: Andrew Schulman (andrex_at_deadspam.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 14:44:24 -0500


> Hi
>
> I experience a problem I don't understand - in fact, I have no clue what
> could create it.
>
> I have a Debian notebook being connected to a router which is connected to
> the german dsl net.
>
> If I ping my router or a ip out in the internet, everything is fine:
>
> -----------8<------------
> 64 bytes from 64.233.167.99: icmp_seq=15 ttl=244 time=147 ms
> 64 bytes from 64.233.167.99: icmp_seq=16 ttl=244 time=148 ms
> 64 bytes from 64.233.167.99: icmp_seq=17 ttl=244 time=148 ms
> 64 bytes from 64.233.167.99: icmp_seq=18 ttl=244 time=147 ms
> 64 bytes from 64.233.167.99: icmp_seq=19 ttl=244 time=148 ms
> 64 bytes from 64.233.167.99: icmp_seq=20 ttl=244 time=148 ms
> 64 bytes from 64.233.167.99: icmp_seq=21 ttl=244 time=146 ms
> 64 bytes from 64.233.167.99: icmp_seq=22 ttl=244 time=147 ms
>
> 64 bytes from 192.168.0.1: icmp_seq=5 ttl=255 time=1.03 ms
> 64 bytes from 192.168.0.1: icmp_seq=6 ttl=255 time=0.979 ms
> 64 bytes from 192.168.0.1: icmp_seq=7 ttl=255 time=0.985 ms
> 64 bytes from 192.168.0.1: icmp_seq=8 ttl=255 time=0.990 ms
> 64 bytes from 192.168.0.1: icmp_seq=9 ttl=255 time=1.02 ms
> 64 bytes from 192.168.0.1: icmp_seq=10 ttl=255 time=0.993 ms
> 64 bytes from 192.168.0.1: icmp_seq=11 ttl=255 time=0.970 ms
> 64 bytes from 192.168.0.1: icmp_seq=12 ttl=255 time=0.994 ms
> -------------->8--------------
>
> as you can see, I didn't use the dns server but pinged using the ip.
> When I ping using the host name instead, something strange happens:
> The ping times stay the same but between each ping is a 2 second delay, I
> think it is the time where the host name is resolved to its ip.
> resolveip <host name> has the same delay
>
> I experience the same delay when I do a "route"
>
> ------------------8<-------------
> Kernel IP Routentabelle
> Ziel Router Genmask Flags Metric Ref Use
> Iface
> localnet * 255.255.255.0 U 0 0 0 eth0
> ###2 seconds delay###
> default SE515.home 0.0.0.0 UG 0 0 0 eth0
> ----------------->8---------------------

Right, and probably route -n doesn't give you that same delay, because
the delay is in DNS resolution.

You say this is happening on your host but not elsewhere on your LAN.
That's good, because it means it's just a local configuration problem;
the upstream DNS servers are responding properly.

The obvious reason that DNS resolution would be slow is that your host
is configured to query a DNS server first that's not answering. So you
have to wait before going on to a server that does answer. What are the
contents of /etc/resolv.conf? Are all of the nameservers mentioned
there functioning?

-- 
To reply by email, replace "deadspam.com" by "alumni.utexas.net"


Relevant Pages

  • Re: How to resolve names
    ... So I can ping and try to ssh/telnet the 2 other machines from my PC via ... I cannot do it by using their host names although I get proper ... I assume that the router is acting as the DNS server, ... # passwd: files nis ...
    (comp.os.linux.networking)
  • Re: Resolving .local domain FQDN on client
    ... Take a look at the man page of host.conf and specially at the option mdns. ... with the tool 'host' I can resolve queries just fine. ... I get the correct answer and a request to the DNS server is made as I can ... $ ping svn.domain.local ...
    (Debian-User)
  • Re: ping me comes back 127.0.0.1
    ... What host is providing the DCHP service to assign you an IP address? ... A DHCP server in a router? ... When you say you cannot ping by name, do you mean a hostname, like "elmer", ... That's the DNS server. ...
    (microsoft.public.win2000.networking)
  • strange delay while dns resolve
    ... If I ping my router or a ip out in the internet, ... When I ping using the host name instead, ... The ping times stay the same but between each ping is a 2 second delay, ... resolveip has the same delay ...
    (comp.os.linux.networking)
  • Re: DNS and name resolution issues
    ... I forgot to add that I can ping if I use the FQDN of the host I am trying to ... can I resolve the name to an IP address using NSLOOKUP. ... NSLOOKUP and point it to the DNS server on 10.4.x.x and I get the results ...
    (microsoft.public.windows.server.dns)