From owner-freebsd-questions Fri Dec 28 10: 2:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from localhost.nosnibod.sytes.net (pc-62-30-231-87-sc.blueyonder.co.uk [62.30.231.87]) by hub.freebsd.org (Postfix) with ESMTP id D703D37B416 for ; Fri, 28 Dec 2001 10:02:42 -0800 (PST) Received: from localhost.nosnibod.sytes.net (localhost.nosnibod.sytes.net [127.0.0.1]) by localhost.nosnibod.sytes.net (8.11.6/8.11.6) with ESMTP id fBSI2Pg03301 for ; Fri, 28 Dec 2001 18:02:27 GMT (envelope-from dave.ross@uk.com) Subject: Re: Howto - dhclient not generate/update resolv.conf From: Dave Ross To: freebsd-questions@freebsd.org In-Reply-To: <200112281755.MAA6061942@shell.TheWorld.com> References: <200112281755.MAA6061942@shell.TheWorld.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ksByRrbN4zqLMq0ao35U" X-Mailer: Evolution/1.0 (Preview Release) Date: 28 Dec 2001 18:02:24 +0000 Message-Id: <1009562547.330.19.camel@speedy.nosnibod.sytes.net> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-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