From owner-freebsd-current Mon Mar 20 9:26:19 2000 Delivered-To: freebsd-current@freebsd.org Received: from www.telemere.net (www.telemere.net [63.224.9.3]) by hub.freebsd.org (Postfix) with ESMTP id 1176C37B8A5 for ; Mon, 20 Mar 2000 09:26:09 -0800 (PST) (envelope-from visigoth@telemere.net) Received: by www.telemere.net (Postfix, from userid 1001) id 4C61570601; Mon, 20 Mar 2000 11:33:24 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by www.telemere.net (Postfix) with ESMTP id 4939B6C801; Mon, 20 Mar 2000 11:33:24 -0600 (CST) Date: Mon, 20 Mar 2000 11:33:24 -0600 (CST) From: Visigoth To: Chris Piazza Cc: current@FreeBSD.org Subject: Re: 75 second delay using telnet/ssh (ipv6 related) In-Reply-To: <20000319150009.A404@norn.ca.eu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 visigoth@telemere.net __________________________________________________________ M$ Windows 2000 was built for the internet. Unix *BUILT* the internet. your call.... __________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message