From owner-cvs-all Thu Jun 15 11:14:31 2000 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 542) id 28BD637BD1E; Thu, 15 Jun 2000 11:14:27 -0700 (PDT) Date: Thu, 15 Jun 2000 11:14:27 -0700 From: "Andrey A. Chernov" To: Hajimu UMEMOTO Cc: alex@big.endian.de, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/net res_init.c res_send.c Message-ID: <20000615111427.A20272@freebsd.org> References: <20000614231141.D471@cichlids.cichlids.com> <20000615.062607.74758174.ume@mahoroba.org> <20000615095829.D2544@cichlids.cichlids.com> <20000616.030308.59461838.ume@mahoroba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000616.030308.59461838.ume@mahoroba.org>; from ume@mahoroba.org on Fri, Jun 16, 2000 at 03:03:08AM +0900 Organization: Biomechanoid Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 16, 2000 at 03:03:08AM +0900, Hajimu UMEMOTO wrote: > I understand what is wrong. If your resolv.conf has IPv6 servers, > socket() is fail and you cannot resolve any hosts. If there are only > IPv4 servers in resolv.conf, it will work. > I just rewrote the code and now testing. Not so simple. I have no resolv.conf at all and your code fails because default NS localhost is set to AF_INET6. When I create this file and add some nameservers to it, your code still fails because they assigned to AF_INET6 too which socket() not understands. It means that 1) you need to set AF_INET6 only for INET6 nameservers 2) you must not set default NS localhost to AF_INET6. The case 2) is harder because you can't run INET6 named by default, so some detection code required which not affect performance. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message