From owner-freebsd-bugs Tue Feb 22 4:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5860E37B662 for ; Tue, 22 Feb 2000 04:30:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA01552; Tue, 22 Feb 2000 04:30:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Tue, 22 Feb 2000 04:30:03 -0800 (PST) Message-Id: <200002221230.EAA01552@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Borja Marcos Subject: Re: bin/16892: "domain" directive in /etc/resolv.conf not consistent when using IPv6 and IPv4 Reply-To: Borja Marcos Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/16892; it has been noted by GNATS. From: Borja Marcos To: freebsd-gnats-submit@FreeBSD.org, borjamar@sarenet.es Cc: Subject: Re: bin/16892: "domain" directive in /etc/resolv.conf not consistent when using IPv6 and IPv4 Date: Tue, 22 Feb 2000 13:25:02 +0100 I have been looking at the code. The IPv6 resolution has been added to /sys/lib/libc/net/gethostnamadr.c, modifying the gethostbyname() function. With IPv6 enabled, it queries first for a IPv6 address and, if this fails, for an IPv4 address. The queries for IPv6 and IPv4 should be done in the DNS resolver routines, at a lower level, preserving the "search" and "domain" semantics. A candidate would be res_search()? -- *********************************************************************** Borja Marcos * Internet: borjam@we.lc.ehu.es Alangoeta, 11 1 izq * borjamar@sarenet.es 48990 - Algorta (Vizcaya) * borjam@uninet.edu SPAIN * borjam@well.com *********************************************************************** --- FreeBSD, turning PCs into workstations To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message