From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 2 03:08:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 213DE37B401; Sat, 2 Aug 2003 03:08:56 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53AFB43FB1; Sat, 2 Aug 2003 03:08:55 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.8p1/8.12.3) with ESMTP id h72A8rkN009708; Sat, 2 Aug 2003 03:08:53 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h72A8q1v009707; Sat, 2 Aug 2003 03:08:52 -0700 (PDT) (envelope-from rizzo) Date: Sat, 2 Aug 2003 03:08:52 -0700 From: Luigi Rizzo To: David Malone Message-ID: <20030802030852.A9531@xorpc.icir.org> References: <20030801235200.A53695@xorpc.icir.org> <20030802085918.GA14729@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030802085918.GA14729@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Sat, Aug 02, 2003 at 09:59:18AM +0100 cc: hackers@freebsd.org cc: ume@freebsd.org Subject: Re: can we disable AAAA queries in the resolver ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 10:08:56 -0000 On Sat, Aug 02, 2003 at 09:59:18AM +0100, David Malone wrote: > On Fri, Aug 01, 2003 at 11:52:00PM -0700, Luigi Rizzo wrote: > > My understanding is that there are multiple buggy components here: > > my ISP's nameserver certainly shouldn't behave so badly on AAAA > > requests, and the applications should not bother asking AAAA queries > > when the kernel has no ipv6 support. ... > (Strictly speaking, you shouldn't cripple the resolver to not look > up IPv6 addresses if none are configured 'cos you might want to > look up the IPv6 address for some other reason than making a > connection. There is a AI_ADDRCONFIG flag for getaddrinfo that i know, but what is happening is that all these applications (including sendmail and our ssh, for what matters) are broken in that they look for an AAAA record just for making a connection. And then it is easier to have a sensible default (that can be overridden by those apps who really need it) than one which is correct but depends on too many things [over which one has no control] to behave correctly. > tells it to only look up addresses if you have an address in that > family configured. For some reason it isn't mentioned in our man > page. I'm not sure what the status of our implementation is either...) browsing through the source code there is a bunch of 'options' in resolv.conf that are not mentioned in the manpage.: timeout: T attempts: N debug no-tld-query inet6 rotate no-check-names edns0 a6 dname nibble: suffix nibble2: suffix bitstring: suffix v6revmode: single|both cheers luigi > David. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"