[PLUG] /etc/resolv.conf and DHCP

Paul Johnson baloo at ursine.ca
Thu Aug 21 22:50:03 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Aug 21, 2003 at 12:16:00PM -0700, Steven Raymond wrote:
> When I converted this rh9 machine over to DHCP, I found that
> /sbin/dhclient-script overwrites /etc/resolv.conf and eliminates the
> search parameter.  Is there any way to feed options like "search
> domain1.com domain2.com" to dhcpd?  I can't figure out how.  Or is there a
> another way, perhaps hacking /sbin/dhclient-script so that it doesn't
> overwrite /etc/resolv.conf search parameters?

Don't take my word for this since I know RH has a tendancy to
obfuscate configs and force you to use horrible clicky config tools
instead of just editing the file straightforward, but check in
/etc/dhclient.conf and add a supersede line for domain-name.

http://ursine.ca/cgi-bin/man/man2html?query=dhclient.conf

- -- 
 .''`.     Paul Johnson <baloo at ursine.ca>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Ra7csClmdIs2Ki8RAkb8AJ9agz+hKZPnJgmpBjp0EkgK7iri7gCePXkS
AcNesLfJOxD1YtH1bFUfD5Q=
=Z9cg
-----END PGP SIGNATURE-----




More information about the PLUG mailing list