On Sunday 13 January 2002 21:44, guitarlynn wrote:
> > Where is it documented that dhclient will re-write resolv.conf?
*******NOTE******* QUICK FIX @BOTTOM OF PAGE
Other hits on the Google search:
If you are running a recent version of the DHCP client, you should be
able to disable writing the resolv.conf file by defining a function in
/etc/dhclient-enter-hooks called make_resolv_conf, that does nothing.
This will replace the standard make_resolv_conf function, which
overwrites your /etc/resolv.conf. This is all documented in the
dhclient-script man page - if you don't see it there, you need to
upgrade.
from:
http://www.isc.org/ml-archives/dhcp-server/1999/06/msg00181.html
I haven't tried that, you can if you want. A patch to the
/etc/dhclient-enter-hooks file that defined the make_resolv_conf
function might work, I don't have the source the package was compiled
with right now. Otherwise I did find the offending section in
/etc/dhclient-script (lines 214-217) that overwrite resolv.conf.
I don't know where the variable goes when CONFIG_DNS=NO,
but if I do I'll submit a patch using something like:
##### $STATIC_RESOLV is called from wherever CONFIG_DNS=NO is run ##
if [ "$STATIC_RESOLV" = "1" ]; then
echo
else
echo search $new_domain_name >/etc/resolv.con
for nameserver in $name_domain_name_servers; do
echo nameserver $nameserver >>/etc/resolv.conf
done
fi
################END OF PATCH#################
Quick fix for you is to comment out lines 214-217 in
/etc/dhclient-script.
Hope this helps,
--
~Lynn Avants
aka Guitarlynn
guitarlynn at users.sourceforge.net
http://leaf.sourceforge.net
If linux isn't the answer, you've probably got the wrong question!
-------------------------------------------------------
--
~Lynn Avants
aka Guitarlynn
guitarlynn at users.sourceforge.net
http://leaf.sourceforge.net
If linux isn't the answer, you've probably got the wrong question!
_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user