Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2000 12:02:21 -0800
From:      Chris Piazza <cpiazza@jaxon.net>
To:        Visigoth <visigoth@telemere.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: 75 second delay using telnet/ssh (ipv6 related)
Message-ID:  <20000320120221.A517@norn.ca.eu.org>
In-Reply-To: <Pine.BSF.4.21.0003201122310.25197-100000@www.telemere.net>; from visigoth@telemere.net on Mon, Mar 20, 2000 at 11:33:24AM -0600
References:  <20000319150009.A404@norn.ca.eu.org> <Pine.BSF.4.21.0003201122310.25197-100000@www.telemere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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
-- 
cpiazza@jaxon.net   cpiazza@FreeBSD.org
        Abbotsford, BC, Canada


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000320120221.A517>