Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2005 10:43:06 -0400
From:      Bob Johnson <fbsdlists@gmail.com>
To:        Sandro Noel <snoel@gestosoft.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Slow internet browsing.
Message-ID:  <54db43990509140743207a2873@mail.gmail.com>
In-Reply-To: <1D945B30-B163-4A8B-AB99-09A8162468FE@gestosoft.com>
References:  <1416A124-66AC-477C-98E2-884B37D16181@gestosoft.com> <790a9fff05091314135011502d@mail.gmail.com> <1D945B30-B163-4A8B-AB99-09A8162468FE@gestosoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>=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



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