Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 09:48:42 -0400
From:      Bill Vermillion <bv@wjv.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: Slow internet browsing
Message-ID:  <20050915134842.GA596@wjv.com>
In-Reply-To: <20050915120050.919BB16A421@hub.freebsd.org>
References:  <20050915120050.919BB16A421@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The door open and in walked trouble - disguised as our our old
nemesis freebsd-stable-request@freebsd.org, who uttered, at Thu,
Sep 15, 2005 at 12:00 :

> Date: Wed, 14 Sep 2005 10:43:06 -0400
> From: Bob Johnson <fbsdlists@gmail.com>
> Subject: Re: Slow internet browsing.
> To: Sandro Noel <snoel@gestosoft.com>

> On 9/13/05, Sandro Noel <snoel@gestosoft.com> wrote:
> >   thank you all for the ULTRA fast reply,
> > i had an entry in the resolv.conf that did not belong there.
> > problem solved.

> > 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. 
> 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.

He could also run   chflags schg   on the /etc/resolv.conf
to keep it from being re-written.

Bill
-- 
Bill Vermillion - bv @ wjv . com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050915134842.GA596>