From owner-freebsd-stable@FreeBSD.ORG Wed Sep 14 15:07:51 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 996E516A41F for ; Wed, 14 Sep 2005 15:07:51 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E92243D53 for ; Wed, 14 Sep 2005 15:07:50 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: by xproxy.gmail.com with SMTP id i31so330049wxd for ; Wed, 14 Sep 2005 08:07:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g1feGGHc+JWWcA8t9oUh4veqpbuQ5P0YeXC8KE551PGSg4C29bfKDdWIKEypOG5fFFyGr7tpjTOHSsL46sSDA16jsxZiMhGSVeQlLWUZegjef7tHQ+Pt+efAhMA0gce5izdz95MpCQp2a+wngfxMVKieny37bw4Y6vF4vKz2tz4= Received: by 10.70.111.9 with SMTP id j9mr690141wxc; Wed, 14 Sep 2005 07:43:06 -0700 (PDT) Received: by 10.70.67.15 with HTTP; Wed, 14 Sep 2005 07:43:06 -0700 (PDT) Message-ID: <54db43990509140743207a2873@mail.gmail.com> Date: Wed, 14 Sep 2005 10:43:06 -0400 From: Bob Johnson To: Sandro Noel In-Reply-To: <1D945B30-B163-4A8B-AB99-09A8162468FE@gestosoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1416A124-66AC-477C-98E2-884B37D16181@gestosoft.com> <790a9fff05091314135011502d@mail.gmail.com> <1D945B30-B163-4A8B-AB99-09A8162468FE@gestosoft.com> Cc: freebsd-stable@freebsd.org Subject: Re: Slow internet browsing. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsdlists@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 15:07:51 -0000 On 9/13/05, Sandro Noel wrote: > thank you all for the ULTRA fast reply, > i had an entry in the resolv.conf that did not belong there. > problem solved. >=20 >=20 > something is bothering me... > the entry stated that it was the ip of my gateway 10.0.5.1 > wich is the same address that the DHCP server gives out. > why is it causing problems ? Many (most?) small firewall/router/nat boxes list themselves as the DNS server when they do DHCP, and they try to proxy the DNS service.=20 Some of them don't seem to do it right when you are using a DNS server on your internal network (and perhaps other situations), and you end up with long delays like you describe. If that's what is going on, the problem will reappear every time you boot the system and get a new DHCP lease (and perhaps every time the lease is renewed), because the dhcp client will rewrite /etc/resolv.conf. In 5.4R I think you can edit /etc/dhclient.conf and add some statements that put the correct entry in regardless of of what the DHCP server tells it. E.g. something like interface "ep0" { prepend domain-name-servers 192.168.1.2; } would always use 192.168.1.2 as the primary DNS server for interface ep0 regardless of what the DHCP server says to use. See the dhclient.conf man page for more details. FreeBSD is in the process of adopting a new dhcp client, but I think this still applies to 5.4R. And yes, this question really belonged on -questions, not -stable, but it's not really a big deal, I guess. When in doubt, use -questions. - Bob