From owner-freebsd-current Mon Mar 20 12: 4:59 2000 Delivered-To: freebsd-current@freebsd.org Received: from norn.ca.eu.org (cr965240-b.abtsfd1.bc.wave.home.com [24.113.19.137]) by hub.freebsd.org (Postfix) with ESMTP id A316337C641 for ; Mon, 20 Mar 2000 12:04:02 -0800 (PST) (envelope-from cpiazza@norn.ca.eu.org) Received: by norn.ca.eu.org (Postfix, from userid 1000) id E4259199C; Mon, 20 Mar 2000 12:02:21 -0800 (PST) Date: Mon, 20 Mar 2000 12:02:21 -0800 From: Chris Piazza To: Visigoth Cc: current@FreeBSD.ORG Subject: Re: 75 second delay using telnet/ssh (ipv6 related) Message-ID: <20000320120221.A517@norn.ca.eu.org> References: <20000319150009.A404@norn.ca.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from visigoth@telemere.net on Mon, Mar 20, 2000 at 11:33:24AM -0600 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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