Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2000 11:14:27 -0700
From:      "Andrey A. Chernov" <ache@freebsd.org>
To:        Hajimu UMEMOTO <ume@mahoroba.org>
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>
In-Reply-To: <20000616.030308.59461838.ume@mahoroba.org>; from ume@mahoroba.org on Fri, Jun 16, 2000 at 03:03:08AM %2B0900
References:  <20000614231141.D471@cichlids.cichlids.com> <20000615.062607.74758174.ume@mahoroba.org> <20000615095829.D2544@cichlids.cichlids.com> <20000616.030308.59461838.ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<ache@nagual.pp.ru>
http://ache.pp.ru/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000615111427.A20272>