Skip site navigation (1)Skip section navigation (2)
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

--=-ksByRrbN4zqLMq0ao35U
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2001-12-28 at 17:55, Kenneth W Cochran wrote:
> Hello...
>=20
> What is a/the correct way to get DHCP (dhclient) to *not*
> generate/update /etc/resolv.conf when it starts/renews?
>=20
> OS is FreeBSD RELENG_4 as of 2001/12/27 (4.5-PRERELEASE).
>=20
> 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.  (?)
>=20
> 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 --

--=20
Dave Ross

--=-ksByRrbN4zqLMq0ao35U
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQA8LLOwStlPKyGucJMRAqjlAJ9jbGPQPzcGtEqw2hP+YY8IZPvmBACffqvh
yV8sddpN3fwTAz5JXYZ6Vug=
=QkMX
-----END PGP SIGNATURE-----

--=-ksByRrbN4zqLMq0ao35U--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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