From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 07:55:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 908B71065678 for ; Fri, 6 Feb 2009 07:55:58 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id EA2568FC2B for ; Fri, 6 Feb 2009 07:55:57 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by ewy14 with SMTP id 14so1355716ewy.19 for ; Thu, 05 Feb 2009 23:55:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=0ZVJV1+xy20Nsn+Ee0y27kHKkEKcz8a+KHcPktSrhyM=; b=jXXG1jdvdaFkNNVE1axWnLGNB108a16k6rslEWTADz0m6Gpt6iuuz1LSIxaAdyVrkx ZhZ0xzzp77ZwqhqLCIRXU9MJUP95H91IQW7wVeGXLM7EMlN1ojxOwt2uIovS2XAzktfB 6uV8lFceVDz2/3hiakiJF/6wcF0rVl/THjp3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; b=uFut+mYtjl5wZFlyRoyPK3h8hfS6hwQj5a+cTRp0XsMCrxcnUY46bGFyHEDFMYtjN0 EuCQr4n1XIcDkOLcy7KXa1/qj+M1bg5YuMJl2CRPRGN0lgYLl0Y1+jlN5eiGeCXzbeJn TDQK7VT/Uqji6RnXJWEfittoauHo8gW4vchz8= Received: by 10.210.90.20 with SMTP id n20mr696912ebb.162.1233906956866; Thu, 05 Feb 2009 23:55:56 -0800 (PST) Received: from ?0.0.0.0? ([196.34.241.123]) by mx.google.com with ESMTPS id 7sm495105eyg.37.2009.02.05.23.55.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Feb 2009 23:55:56 -0800 (PST) From: David Naylor Organization: Private To: freebsd-questions@freebsd.org Date: Fri, 6 Feb 2009 09:55:56 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2578104.hHPi10UHqx"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200902060955.59611.naylor.b.david@gmail.com> Subject: Slow DNS (and host: connection timed out) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 07:55:58 -0000 --nextPart2578104.hHPi10UHqx Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, My ISP is using a WinGate DNS but resolving host names often takes a long=20 time. The problem is also present in Konqueror (3 & 4) and Firefox. =20 An example: # time host google.co.za google.co.za has address 66.249.93.104 google.co.za has address 72.14.207.104 google.co.za has address 64.233.161.104 ;; connection timed out; no servers could be reached ;; connection timed out; no servers could be reached 0.000u 0.008s 0:24.69 0.0% 0+0k 0+0io 0pf+0w The web browsers also take a long time before they actually try connecting.= =20 # konqueror www.google.co.za & [1] 4862 # sh -c 'while true; do echo -n .; netstat -np tcp; sleep 5; done' =2E.....Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.0.6.55429 63.245.209.93.80 SYN_SENT tcp4 0 0 192.168.0.6.12337 74.125.77.147.80 SYN_SENT =2EActive Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.0.6.55429 63.245.209.93.80 SYN_SENT tcp4 0 0 192.168.0.6.12337 74.125.77.147.80 SYN_SENT =46irefox on Windows doesn't have this problem. Lastly: # cat /etc/resolve.conf nameserver 192.193.194.1 What is wrong, why is DN resolving taking such an abnormally long time? Ho= w=20 can I diagnose and fix it? Thanks in advance, David System: # uname -a =46reeBSD dragon.dg 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Sub Feb 1 20:= 27:42=20 SAST 2009 root@dragon.dg:/tmp/tmp/src/sys/GENERIC i386 and # uname -a =46reeBSD dragonmini.dg 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Dec 21 20:0= 4:04=20 SAST 2008 root@dragonmini.dg:/tmp/usr/src/sys/GENERIC amd64 --nextPart2578104.hHPi10UHqx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkmL7Q8ACgkQUaaFgP9pFrJZ3gCaAxrdDJZyqZ1nsYQK1SIvLB2w sgAAnj2ClLpRO/fpsKWc1PrkgmC5VzO3 =v2Ag -----END PGP SIGNATURE----- --nextPart2578104.hHPi10UHqx--