Slow internet browsing
Bill Vermillion
bv at wjv.com
Thu Sep 15 06:49:34 PDT 2005
The door open and in walked trouble - disguised as our our old
nemesis freebsd-stable-request at 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 at gmail.com>
> Subject: Re: Slow internet browsing.
> To: Sandro Noel <snoel at gestosoft.com>
> On 9/13/05, Sandro Noel <snoel at 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
More information about the freebsd-stable
mailing list