Guest User!

You are not Sophos Staff.

[8.172][QUESTION][ANSWERED] Ping works after 10seconds?

Hi there,

i have a real strange problem... 

if i ping for example heise online - IT-News, c't, iX, Technology Review, Telepolis the ping starts imediatly, if i ping a internal hostname,
it tooks over 10 sekonds for the ping to start. If i ping the ip address, it pings again imediatly.

I'm for example not able to send ctrl-c to the ping command:



 firewall:/root # ping vmware.ducktales.net
PING vmware.ducktales.net (10.10.10.80) 56(84) bytes of data.
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C64 bytes from 10.10.10.80: icmp_seq=1 ttl=64 time=0.783 ms

--- vmware.ducktales.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.783/0.783/0.783/0.000 ms
 firewall:/root #


it's like if the ping command runns in a timeout, but i don't understand why, dns is resolving in less than a second, does anyone have a idea?

I restarted my complete equipment inkl. all routers...

here is the same ping with an strace:



Robert
Parents
  • Update:

    if i add a fixed host in the DNS of my ASG, it works, so what could be the problem as a nslookup works perfect?

    Robert
  • Update:

    if i add a fixed host in the DNS of my ASG, it works, so what could be the problem as a nslookup works perfect?


    ping also performs a reverse dns lookup on the reply IP address.
    This is also visible in your strace output,:
    sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("10.10.10.80")
    -> this is the echo request
    recvmsg(3, ... -> this is the reply
    Then /etc/hosts is inspected, but does not find a suitable ip->name mapping
    so DNS is tried:
    socket(PF_INET, 0x802 /* SOCK_??? */, IPPROTO_IP) = 4
    [..]
    poll([{fd=4, events=POLLIN}], 1, 5000)  = 0 (Timeout)
    .. and does not receive an answer within 5 seconds.

    Either fix  reverese DNS or use "ping -n".
Reply
  • Update:

    if i add a fixed host in the DNS of my ASG, it works, so what could be the problem as a nslookup works perfect?


    ping also performs a reverse dns lookup on the reply IP address.
    This is also visible in your strace output,:
    sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("10.10.10.80")
    -> this is the echo request
    recvmsg(3, ... -> this is the reply
    Then /etc/hosts is inspected, but does not find a suitable ip->name mapping
    so DNS is tried:
    socket(PF_INET, 0x802 /* SOCK_??? */, IPPROTO_IP) = 4
    [..]
    poll([{fd=4, events=POLLIN}], 1, 5000)  = 0 (Timeout)
    .. and does not receive an answer within 5 seconds.

    Either fix  reverese DNS or use "ping -n".
Children
No Data