From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 1 23:52:06 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 EAE8637B401 for ; Fri, 1 Aug 2003 23:52:06 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 258CA43FE0 for ; Fri, 1 Aug 2003 23:52:06 -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 h726q0kN053793; Fri, 1 Aug 2003 23:52:00 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h726q0ra053792; Fri, 1 Aug 2003 23:52:00 -0700 (PDT) (envelope-from rizzo) Date: Fri, 1 Aug 2003 23:52:00 -0700 From: Luigi Rizzo To: hackers@freebsd.org Message-ID: <20030801235200.A53695@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Subject: 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 06:52:07 -0000 hi, recently i have been bitten by a problem which might be already known, but still... quite a few apps (sendmail and ssh among them) seem to always try an AAAA query if compiled with ipv6 support, and even if the kernel does not support ipv6, tcpdump shows AAAA queries going out to the nameserver, and often timing out or otherwise causing my apps significand delays at startup. 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. On the other hand, the resolver code is probably just innocent because if some application issues an AAAA request, the resolver has no reason to object. Still, rather than fixing the many broken applications, or the nameserver (on which i have no control) i wonder if it is possible to instruct the resolver, perhaps through some option in resolv.conf, to immediately return some kind of negative replies on selected queries ? cheers luigi