I don't have dhclient on my boxes, and the man page doesn't mention
any options to help out.
What I would do is use dhcpcd, which doesn't automatically overwrite
/etc/resolv.conf, OR, edit the binary dhclient. 
vi -b
works fine for this.
Try
:/resolve.conf
and then change one letter in the name. Perhaps just use the ~ key to make
one letter uppercase. Then:
:wq
should save your changes.
Then, dhclient will not bother your /etc/resolv.conf
file. If you try this, it is important to:
1. Backup up dhclient before you edit it.
2. Just change a letter, don't change the size of the file!

OR, you might try making /etc/resolv.conf read only.

Joel


On Sun, Jan 13, 2002 at 06:53:10PM -0500, Jerry McBride wrote:
p
> 
> I've got dhclient running smooth as silk here, but I have one question...
> 
> How in thw world do you keep it from re-writing /etc/resolv.conf?
> 
> I've got bind up and running and dhclient will over write my changes in resolv.conf 
>whenh ever it pleases.
> 
> 
> 
> 
> 
> -- 
> 
> *****************************************************************************
>                      Registered Linux User Number 185956
>           http://groups.google.com/groups?hl=en&safe=off&group=linux
>      6:01pm  up 4 days, 19:04,  7 users,  load average: 0.04, 0.05, 0.05
> _______________________________________________
> Linux-users mailing list
> Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to