Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2006 14:51:36 +0200
From:      Karol Kwiatkowski <freebsd@orchid.homeunix.org>
To:        "Thomas T. Veldhouse" <veldy@veldy.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: resolv.conf and dhclient
Message-ID:  <448428D8.5030501@orchid.homeunix.org>
In-Reply-To: <44842282.6050409@veldy.net>
References:  <44842282.6050409@veldy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig35B6E9CEE2B7C343F69E03D6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/06/2006 14:24, Thomas T. Veldhouse wrote:
> What is the best approach to keep dhclient from overwriting
> /etc/resolv.conf every time it gets a new lease on an IP address?  This=

> has been a frustrating search as Google has turned up next to nothing o=
n
> the issue other than a hack into a script file which should be
> overwritten when world is rebuilt.

If I'm getting your question right - isn't 'supersede' option in
dhclient.conf(5) what you want? Something like:

interface "int0" {
	supersede domain-name "example.com"
	supersede domain-name-servers "127.0.0.1"
}

HTH,

Karol

> Thanks in advance,
>=20
> Tom Veldhouse


--=20
Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>
OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc


--------------enig35B6E9CEE2B7C343F69E03D6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhCjgezeoPAwGIYsRAlS5AJwIS05IA8bKOSU5I0XkfZc/Z4cLDQCeI3zW
TK2tZPInHh1NTEaTBUBSgOw=
=WVJ2
-----END PGP SIGNATURE-----

--------------enig35B6E9CEE2B7C343F69E03D6--



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