On Sun, 19 Mar 2000, Chris Piazza wrote:

> If I use telnet or ssh (there might be more programs,
> but I have only noticed these two so far), and supply a hostname to it,
> my machine is constantly requesting AAAA records, and finally after
> 75 seconds it requests and receives an A record from the nameserver.

    Could it be possible that you have "options inet6" in your
/etc/resolv.conf file?  This options causes calls for only AAAA records at
first and then if they fail, use A records. 

        According to Mr. Stevens (Unix Network Programing Vol 1
chapt 9.4) this option, or having the env. variable RES_OPTIONS=inet6 set
will cause the behavior you are describing... 

> Using ssh -4 or telnet -4 makes it work right away (of course), but
> I don't want to have to type that all the time. [program] ipv4address
> also works.

Hmmm...  I don't know but it seems that ssh -4 set's its own family to
AF_INET in all of it's calls to gethostbyname() rather than AF_INET6.
Thereby telling the resolver to only return A records....



Damieon Stark
Sr Unix System's Administrator
[EMAIL PROTECTED]

__________________________________________________________

M$ Windows 2000 was built for the internet.
Unix *BUILT* the internet.
your call....
__________________________________________________________



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to