Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2007 15:09:34 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        George.Vanev@gmail.com
Cc:        questions@freebsd.org
Subject:   Re: Automatically get nameservers
Message-ID:  <44y7oay77l.fsf@be-well.ilk.org>
In-Reply-To: <6f4f57f60701092249p65cc4a2bn40af47d6096f5918@mail.gmail.com> (George Vanev's message of "Wed, 10 Jan 2007 08:49:34 %2B0200")
References:  <6f4f57f60701090556v35b55b2cn9bbcd363c588b002@mail.gmail.com> <45A3AD0A.1090600@vidican.com> <6f4f57f60701092249p65cc4a2bn40af47d6096f5918@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"George Vanev" <george.vanev@gmail.com> writes:

> I installed isc-dhcpd and it is working fine.
> But I don't want to hardcode the nameservers in the dhcpd.conf,
> because my ISP is changing them sometimes.
> It would be perfect if there is a way dhcpd to read the nameservers
> from /etc/resolv.conf

Not exactly, but you can have the dhclient rewrite the dhcpd.conf when
it gets new nameservers.  I used to do this; I ran it from
dhclient-exit-hooks, and it was a simple sed(1) command.  For a long
time, I've been running my own local caching nameserver, and directing
the DHCP clients to that, but I could dig out my old script if you
have trouble with it.  Although I would suggest you also consider
setting up your own local caching nameserver; the caching behaviour
can be a noticeable speed boost.



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