From owner-freebsd-hackers Sat Aug 12 8:29:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id 74F0537BE2A for ; Sat, 12 Aug 2000 08:29:27 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:qzZJQaBP1p04i7YYjdRyAhYtdVilZX+XnbVNqiTXRZrB1ffu3KodTrOvvlaa7nDX@localhost [::1]) (authenticated) by peace.mahoroba.org (8.11.0/8.11.0/peace) with ESMTP/inet6 id e7CFQDu08614; Sun, 13 Aug 2000 00:26:13 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 13 Aug 2000 00:26:10 +0900 (JST) Message-Id: <20000813.002610.88470063.ume@mahoroba.org> To: cactoss@galima.2y.net Cc: freebsd-hackers@freebsd.org Subject: Re: localhost cannot be resolved From: Hajimu UMEMOTO In-Reply-To: <200008121447.KAA03691@galima.2y.net> References: <8n2v5k$kjv$1@FreeBSD.csie.NCTU.edu.tw> <200008121447.KAA03691@galima.2y.net> X-Mailer: xcite1.20> Mew version 1.95b38 on Emacs 20.6 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Sat, 12 Aug 2000 10:47:43 -0400 (EDT) >>>>> Alexander Anderson said: > Which version of FreeBSD are you using? cactoss> 4.0-RELEASE Please update to 4.1-RELEASE. 4.0-RELEASE's getaddrinfo(3) has DNS query order problem and it was fixed in 4.1-RELEASE. Or, at least you should update libc/net/getaddrinfo.c and libc/net/name6.c I don't know why getaddrinfo(3) fails for localhost query, exactly. However, probably updating to 4.1-RELEASE fixes your problem. cactoss> I tried to look at the sources for telnet. In file commands.c:2292, there's cactoss> an assignment of variable "family". I couldn't understand where the variable cactoss> is coming from. The variable `family' is came from command line of telnet. If -4 is specified, telnet tries only AF_INET. If -6 is specified, telnet tries only AF_INET6. Default is AF_UNSPEC, that is try both IPv6 and IPv4. cactoss> Could you please take a look at `ifconfig lo0`: cactoss> lo0: flags=8049 mtu 16384 cactoss> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 cactoss> inet6 ::1 prefixlen 128 cactoss> inet 127.0.0.1 netmask 0xff000000 cactoss> Does it look okay? It seems fine. cactoss> One question. Firewall rules apply to both IPv4 and IPv6, right? There cactoss> shouldn't be separate rules to IPv6, should there? No. Rules for IPv6 is set separately by ip6fw. Firewall for IPv6 is enabled by specifying `options IPV6FIREWALL' in your kernel config. -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message