From owner-freebsd-current Tue Feb 29 19:57: 8 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail5.fujitsu.co.jp (fgwmail5.fujitsu.co.jp [192.51.44.35]) by hub.freebsd.org (Postfix) with ESMTP id 6267237BDC0 for ; Tue, 29 Feb 2000 19:56:40 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m5.gw.fujitsu.co.jp by fgwmail5.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id MAA14077; Wed, 1 Mar 2000 12:56:28 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from chisato.nd.net.fujitsu.co.jp by m5.gw.fujitsu.co.jp (8.9.3/3.7W-0002-Fujitsu Domain Master) id MAA11789; Wed, 1 Mar 2000 12:56:27 +0900 (JST) Received: from localhost (dhcp7194.nd.net.fujitsu.co.jp [10.18.7.194]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id MAA00957; Wed, 1 Mar 2000 12:56:26 +0900 (JST) To: dv@dv.ru Cc: current@FreeBSD.ORG Subject: Re: is inet6 preffered when resolving names? In-Reply-To: References: X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000301125719I.shin@nd.net.fujitsu.co.jp> Date: Wed, 01 Mar 2000 12:57:19 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 33 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi! > > Is it right behavior to try IPv6 address first? > > work# telnet localhost > Trying ::1... > telnet: connect to address ::1: Connection refused > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > Only solution for it is to comment out in /etc/hosts: > > ::1 localhost localhost.my.domain myname.my.domain > > I've tried to switch 127.0.0.1 and ::1 is /etc/hosts but there was no effect. Now the order of the searching address family is statically defined in libc. So if the target has AAAA recored, then it is tried first. Currently, another workaround is, using '-4' option. telnet -4 localhost And what is your desired behaviour? If your desire is that always IPv4 address is tried first, then we can add some swith to change the order. (But it will be after 4.0.) Thanks, Yoshinobu Inoue To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message