strange delay while dns resolve

From: Kevin Börgens (kevin_at_boergens.de)
Date: 01/27/05


Date: Thu, 27 Jan 2005 18:21:19 +0100

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---------------------

Its clearly a problem of my machine because the other clients in this net
don't have it but I still have it if I use a friend's net. I don't think
its a hardware problem either, because using wlan it was the same.

Any help appreciated,
     Kevin



Relevant Pages

  • Re: strange delay while dns resolve
    ... > If I ping my router or a ip out in the internet, ... I didn't use the dns server but pinged using the ip. ... > The ping times stay the same but between each ping is a 2 second delay, ... > think it is the time where the host name is resolved to its ip. ...
    (comp.os.linux.networking)
  • Re: connecting via broadband?
    ... > Ping statistics for 193.252.22.137: ... >> mail server and that it is responsive so you get a mail session ... >> host that responds to 'ping' does NOT mean the server program is ... >> actually running or responsive on that host. ...
    (microsoft.public.outlook.general)
  • Re: host availability
    ... >>>google.com, my default gateway, comcast's mail server etc. ... a host was "up or down". ... If you don't get an answer to a ping request, ... happened to reset the interface right then, remote system got trojaned ...
    (comp.security.firewalls)
  • RE: ICMP (Ping)
    ... I do like your reasoning that others do not generally have a business need ... to ping your hosts, however I still prefer to allow this service not simply ... how many hosts do not respond to ICMP echo. ... DHCP server should be able to assume that if the IP were in use a host would ...
    (Security-Basics)
  • RE: Determine if Virtual PC is running
    ... I've just checked my source code and my code for PING actually derives from ... when pinging a local pc by host name, ... that IP-address will probably respond. ... We can check for SystemName via WMI hostname check for additional security. ...
    (microsoft.public.vb.general.discussion)