Date: 28 Dec 2001 18:02:24 +0000 From: Dave Ross <dave.ross@uk.com> To: freebsd-questions@freebsd.org Subject: Re: Howto - dhclient not generate/update resolv.conf Message-ID: <1009562547.330.19.camel@speedy.nosnibod.sytes.net> In-Reply-To: <200112281755.MAA6061942@shell.TheWorld.com> References: <200112281755.MAA6061942@shell.TheWorld.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, 2001-12-28 at 17:55, Kenneth W Cochran wrote:
> Hello...
>
> What is a/the correct way to get DHCP (dhclient) to *not*
> generate/update /etc/resolv.conf when it starts/renews?
>
> OS is FreeBSD RELENG_4 as of 2001/12/27 (4.5-PRERELEASE).
>
> What I want to do: Get my ip-address, etc, via DHCP/dhclient,
> but still be able to run my own (caching-only, for example)
> nameserver. Based on manpage(s) (e.g. resolv.conf(5)) it seems
> quite appropriate to *not* have resolv.conf in this scenario. (?)
>
> Citable source (aka, FM to RT :) much appreciated. So far, I
> haven't found quite what I'm looking for in the manpages,
> Handbook, books, etc.
man dhlclient.conf
What you want is something like:-
-- BEGIN /etc/dhclient.conf --
interface "wi0" {
prepend domain-name-servers 127.0.0.1;
}
-- END --
--
Dave Ross
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQA8LLOwStlPKyGucJMRAqjlAJ9jbGPQPzcGtEqw2hP+YY8IZPvmBACffqvh
yV8sddpN3fwTAz5JXYZ6Vug=
=QkMX
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1009562547.330.19.camel>
