From owner-freebsd-bugs Mon Feb 21 13:30: 9 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 B9B7837C08F for ; Mon, 21 Feb 2000 13:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA23592; Mon, 21 Feb 2000 13:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DA1B537B952 for ; Mon, 21 Feb 2000 13:27:36 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA23443; Mon, 21 Feb 2000 13:27:36 -0800 (PST) (envelope-from nobody@FreeBSD.org) Message-Id: <200002212127.NAA23443@freefall.freebsd.org> Date: Mon, 21 Feb 2000 13:27:36 -0800 (PST) From: borjamar@sarenet.es To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/16892: "domain" directive in /etc/resolv.conf not consistent when using IPv6 and IPv4 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16892 >Category: bin >Synopsis: "domain" directive in /etc/resolv.conf not consistent when using IPv6 and IPv4 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 21 13:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Borja Marcos >Release: 4.0-CURRENT >Organization: >Environment: FreeBSD pepe.arnor.es 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Sun Feb 20 13:02:36 GMT 2000 root@pepe.arnor.es:/usr/src/sys/compile/NENUIAL i386 >Description: A machine with both IPv6 and IPv4 and an /etc/resolv.conf file with the "domain" or "search" options searches addresses in wrong order (IMHO) When resolving a domain-less name, the resolver does the queries in the following order: (for example, this is the "arnor.es" domain and I'm trying to contact "nenuial") 1 - Query AAAA nenuial.arnor.es 2 - Query AAAA nenuial 3 - Query A nenuial.arnor.es 4 - Query A neuial I think the order should be 1,3,2,4. The "domain" and "search" options in /etc/resolv.conf specify that the domain suffix should be added to domain-less names, and the current behavior violates this principle. Only IPv6 queries work in this way. In a network with demand-dialing to Internet, this causes the router to dial, as the suffix-less name has to be resolver outside the local network. >How-To-Repeat: Enable both IPv4 and IPv6, and use a /etc/resolv.conf file with a "domain" or "search" keyword. Try to telnet, ping, ftp or whatever, one of the machines, using the domain-less name. >Fix: Changing the order in which the queries are done. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message