[prev in list] [next in list] [prev in thread] [next in thread]
List: dhcp-client
Subject: Re: dhclient-exit-hooks
From: Ted Lemon <mellon () nominum ! com>
Date: 2001-02-13 19:37:37
[Download RAW message or body]
*** From dhcp-client -- To unsubscribe, see the end of this message. ***
> function make_resolv_conf() {
> echo search localhost $new_domain_name >/etc/resolv.conf
> echo nameserver 127.0.0.1 >>/etc/resolv.conf
> for nameserver in $new_domain_name_servers; do
> echo nameserver $nameserver >>/etc/resolv.conf
> done
> }
FYI, you can do this in the dhclient.conf file:
prepend domain-name "localhost ";
prepend domain-name-servers 127.0.0.1;
Having a dhclient-exit-hooks script to adjust your ipchains setup is
certainly a useful application. :')
_MelloN_
-----------------------------------------------------------------------
To unsubscribe from this list, visit http://www.isc.org/dhcp-lists.html
or send mail to dhcp-client-request@isc.org with the subject line of
'unsubscribe'.
-----------------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic