[H-GEN] Is this a DNS configuration problem?
Edwards_Ewan_B at cat.com
Edwards_Ewan_B at cat.com
Wed Mar 10 19:52:16 EST 2004
On Wednesday 10 March 2004 17:36, Gavin Unsworth wrote:
>
> > The response to a ping of either <hostname> or
> > <hostname>.<domainname> is (almost) instant in both cases. From
> > that I'd guess looking up <hostname> either doesn't fail, or ssh
> > uses a different mechanism for name lookups.
>
> Using strace might give you a pointer as to why it stalls.
>
> $ strace ssh <hostname>
Good grief!
How does one begin to figure out what all that means? :-(
Okay, I've isolated two places that it stalls. (see below) In each
case it stalls for a few seconds with line "poll( ".
For comparison (by someone who might have a clue), also below is the
corresponding part of the trace for the <hostname>.<domainname> case
that responds instantly.
The only significant difference I can see is that <hostname> only case
the IP address used in the "connect" records change from the primary
DNS server to the secondary, to the tertiary. From that, the guess
is the primary DNS server is not responding to whatever query is
being made by "connect". But I already know that dig <hostname>
results in an ANSWER: 0.
This is now looking very much like a DNS configuration issue.
What do I need to do to get the primary DNS server to answer hostname
only queries as well as FQDN queries?
<snip>
munmap(0xbf536000, 4096) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.23")}, 28) = 0
send(3, "\1\342\1\0\0\1\0\0\0\0\0\0\6galena\10minestar\2au\3"..., 44,
0) = 44
gettimeofday({1078956086, 171234}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [90]) = 0
recvfrom(3,
"\1\342\205\200\0\1\0\0\0\1\0\0\6galena\10minestar\2au\3"..., 1024,
0, {sa_family=AF_IN
close(3) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.23")}, 28) = 0
send(3, "\1\343\1\0\0\1\0\0\0\0\0\0\6galena\0\0\34\0\1", 24, 0) = 24
gettimeofday({1078956086, 173586}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 5000) = 0 ******** PAUSE **********
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.21")}, 28) = 0
send(4, "\1\343\1\0\0\1\0\0\0\0\0\0\6galena\0\0\34\0\1", 24, 0) = 24
gettimeofday({1078956091, 181852}, NULL) = 0
poll([{fd=4, events=POLLIN}], 1, 3000) = 0 ********* PAUSE *********
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.212.28")}, 28) = 0
<snip>
<snip>
munmap(0xbf583000, 4096) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.23")}, 28) = 0
send(3, "\21\221\1\0\0\1\0\0\0\0\0\0\6galena\10minestar\2au\3"..., 44,
0) = 44
gettimeofday({1078959405, 106469}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [90]) = 0
recvfrom(3,
"\21\221\205\200\0\1\0\0\0\1\0\0\6galena\10minestar\2au"..., 1024, 0,
{sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.23")}, [16]) = 90
close(3) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.23")}, 28) = 0
send(3, "\21\222\1\0\0\1\0\0\0\0\0\0\6galena\10minestar\2au\3"..., 64,
0) = 64
gettimeofday({1078959405, 109679}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [110]) = 0
recvfrom(3,
"\21\222\205\203\0\1\0\0\0\1\0\0\6galena\10minestar\2au"..., 1024, 0,
{sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("172.30.44.23")}, [16]) = 95
<snip>
More information about the General
mailing list