Skip to main content

Thread: Fast ping when IP, slow when host name.


painfully slow, 3 pings in 20 seconds. 0.052ms ping each of 3 pings though.
code:
william@server:~$ ping example.com ping example.com (xxx.xxx.xxx.xxx) 56(84) bytes of data. 64 bytes xxx.xxx.xxx.xxx: icmp_seq=1 ttl=64 time=0.051 ms 64 bytes xxx.xxx.xxx.xxx: icmp_seq=2 ttl=64 time=0.052 ms ^c64 bytes xxx.xxx.xxx.xxx: icmp_seq=3 ttl=64 time=0.050 ms  --- example.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 20020ms rtt min/avg/max/mdev = 0.050/0.051/0.052/0.000 ms
fast.
code:
william@server:~$ ping xxx.xxx.xxx.xxx ping xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 56(84) bytes of data. 64 bytes xxx.xxx.xxx.xxx: icmp_seq=1 ttl=64 time=0.063 ms 64 bytes xxx.xxx.xxx.xxx: icmp_seq=2 ttl=64 time=0.024 ms 64 bytes xxx.xxx.xxx.xxx: icmp_seq=3 ttl=64 time=0.024 ms 64 bytes xxx.xxx.xxx.xxx: icmp_seq=4 ttl=64 time=0.060 ms ^c --- xxx.xxx.xxx.xxx ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2997ms rtt min/avg/max/mdev = 0.024/0.042/0.063/0.020 ms

lookup not slow:
code:
william@server:~$ time nslookup example.com server:		xxx.xxx.xxx.xxx address:	xxx.xxx.xxx.xxx#53  non-authoritative answer: name:	example.com address: xxx.xxx.xxx.xxx   real	0m0.043s user	0m0.000s sys	0m0.000s
the system seems stall on requests weird times, such using squirrelmail or imap using host name (works fine when ip specified instead), doesn't seem right , related.


ideas? domain held godaddy, dns @ record pointed @ server @ xxx.xxx.xxx.xxx, , i'm doing server itself. shouldn't take 20 seconds ping 3 times. issue replicated on machine on network. server holds multiple domains example.com not set computer's host name.

adding example.com hosts file on server improve ping time on server, server, not other machine.


also, seems affecting inside network server.


edit: server seems doing ips



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] Fast ping when IP, slow when host name.


Ubuntu

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support