Re: DNS Q: 'host fqdn' works, 'ping ip' works, 'ping fqdn' does NOT!
"Frank Vreugdenhil" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
>From the strace I can see that ping is sending using udp ..
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.0.1.1")}}, 28) = 0
send(4, "sE\1\0\0\1\0\0\0\0\0\0\3www\6google\3com\0\0\1\0\1", 32, 0) = 32
But if I look at the strace of the host or dig command, I cant see it
creating a socket, but it is not trying to do a connect at all. Yet it still
gets the result.
I am not sure what the host command is doing different to ping when
resolving the name.
_________________________________________________________________
Hotmail now available on Australian mobile phones. Go to
http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp