Is it just some misconfiguration of mine which causes getaddrinfo()
with an unqualified hostname, IPv6 and hints->ai_family == AF_UNSPEC
to block (trying a DNS lookup I guess), even when the hostname has a
perfectly good IPv4 address, or is this normal behaviour? This seems
rather annoying, and means something as simple as "ftp otherhost" will
block unless I use the FQDN. Is there any way to avoid this behaviour?
ben@platinum:~$ nslookup magnesium
Server: magnesium.scientia.demon.co.uk
Address: 192.168.91.34
Name: magnesium.scientia.demon.co.uk
Address: 192.168.91.34
ben@platinum:~$ ping magnesium
PING magnesium.scientia.demon.co.uk (192.168.91.34): 56 data bytes
64 bytes from 192.168.91.34: icmp_seq=0 ttl=255 time=0.347 ms
64 bytes from 192.168.91.34: icmp_seq=1 ttl=255 time=0.349 ms
^C
--- magnesium.scientia.demon.co.uk ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.347/0.348/0.349/0.001 ms
ben@platinum:~$ ftp magnesium
load: 0.00 cmd: ftp 9478 [poll] 0.00u 0.01s 0% 976k
It's rather annoying, to say the least. The pause may well be quite
short if you have a permanent connection so the DNS lookup can fail
quickly, but it will take a while to timeout with an intermittent
connection. :-(
--
Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message