On Mon, Mar 20, 2000 at 11:33:24AM -0600, Visigoth wrote:
> 
> 
> 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... 

No, neither of those.  FreeBSD searches inet6 first at the moment.
I don't know if I made this clear in my email, but this just started
happening... Hmm... it's fixed again:

12:01:15.622122 24.113.19.137.1253 > 24.2.10.36.53:  61892+ AAAA? beast.freebsd.org. 
(35)
12:01:15.706319 24.2.10.36.53 > 24.113.19.137.1253:  61892 1/1/0 (132)
12:01:15.707070 24.113.19.137.1254 > 24.2.10.36.53:  61893+ A? beast.freebsd.org. (35)
12:01:15.750017 24.2.10.36.53 > 24.113.19.137.1254:  61893 2/4/4 (238)

Weird.

> 
> > 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....

Right.

-Chris
-- 
[EMAIL PROTECTED]   [EMAIL PROTECTED]
        Abbotsford, BC, Canada


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

Reply via email to