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

David Nicholls said:
> I've been having a few problems with dns lookups and have been given a
> new set up dns servers and not the same ones placed into resolv.conf by
> dhcp.
> 
> Obviously if I make a change to resolv.conf, it will be soon-after be
> updated back to the original dns servers by dhcp. 

I do it by editing/creating /etc/dhclient-enter-hooks like so:

# redefine the function which changes resolv.conf to do nothing
make_resolv_conf() {
   return
}

The other way would be to edit /etc/dhclient.conf and tell it to prepend
to the list of dns servers

prepend domain-name-servers x.x.x.x;

- --

/phil


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCqcl0Gbd/rBLcaFwRAtwCAJ9gis6FSUkzjZjPDfEd5SOmf9EvnACcDL+L
WrQQbGIsmExOyQO5mO080hs=
=TuFB
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to