From owner-freebsd-questions@FreeBSD.ORG Sun Mar 7 06:42:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 921E316A4CE for ; Sun, 7 Mar 2004 06:42:16 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA64443D3F for ; Sun, 7 Mar 2004 06:42:15 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i27EgBeQ092926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Mar 2004 14:42:11 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i27EgBLt092925; Sun, 7 Mar 2004 14:42:11 GMT (envelope-from matthew) Date: Sun, 7 Mar 2004 14:42:11 +0000 From: Matthew Seaman To: Dragoncrest Message-ID: <20040307144211.GG52694@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Dragoncrest , questions@freebsd.org References: <200403071357.i27DvSu0053555@mail3.mx.voyager.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V32M1hWVjliPHW+c" Content-Disposition: inline In-Reply-To: <200403071357.i27DvSu0053555@mail3.mx.voyager.net> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: questions@freebsd.org Subject: Re: slow dns resolutions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2004 14:42:16 -0000 --V32M1hWVjliPHW+c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 07, 2004 at 08:57:28AM -0500, Dragoncrest wrote: > Resolv.conf has the right dns servers in the right order and my hosts > file is perty much bare, save for the names of both machines at my desk, > so I'm stumped as to what could be causing this. Can anyone suggest > anything? I've seen very similar symptoms occur when the FreeBSD box is attempting to do IPv6 AAAA lookups, the way the standards say getaddrinfo(3) should operate nowadays. Windows, typically, completely ignores the existence of IPv6, and unfortunately many suppliers of advertizing (it always seems to be the advertizers -- I've never had any problem with other web content providers) on the net still haven't woken up to the fact that there is more to life, and computing, than just the latest outpourings of Redmond. Anyone would think they don't want you to see their adverts... It's not as if they haven't had enough time to implement any IPv6 support either: the first IPv6 RFCs were published 10 years ago. Not only that, but they are running DNS software that is willfully broken even by pre-IPv6 standards: when presented with a request for a RR type that the server doesn't recognise, it is meant to reply with a NXDOMAIN error code. These just sit there dumbly, forcing the client side to wait for the whole 30s of the DNS timeout. Solutions: you can rip all of the IPv6 support out of your FreeBSD system -- which involves editing your make.conf and kernel config and doing a full builworld cycle. Or you can run your own web proxy which filters out the advertizing: the www/junkbuster port is one such, and there are several more available. Or you can do like I do, which is to run your own recursive DNS server, but load it with some dummy copies of the advertisers' domains. Nb. if you do either of these last two, be aware that you can hurt financially those often very useful and otherwise blameless sites that carry the advertising. Cheers, Matthew=09 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --V32M1hWVjliPHW+c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFASzTDdtESqEQa7a0RAkfvAJ4nVo3UMC8QlR3DW5AWd0ITN3eEvgCgg5pJ y6i9A/saZ2YJ6b7kVWPfT2U= =TJMy -----END PGP SIGNATURE----- --V32M1hWVjliPHW+c--