Baruch Even wrote:
Diego Iastrubni wrote:
The first work around, is to set the DNS server of the clients, not to the
modem but to the DNS servers of the ISP. Since the DHCP lease of the clients
ends after X time, the clients get once again the DNS of the modem, and the
problem comes back. How do modify the dhcp clients to a specific DNS, and not
to get them from the modem?
In my case there is a directory /etc/dhcp3/dhclient-enter-hooks.d/ any
script inside it is run on dhcp lease renewal. Simply place there a
script to reset the resolv.conf to whatever you want.
Another option is to set the resolv.conf to whatever you want and chattr
+i it, it will prevent *any* modification. To change it after that you
will have to chattr -i it. This essentially assumes ext3, maybe reiser
supports attributes as well, never tried it.
If you have resolvconf installed you can use it to set the ISP
nameservers to be fixed at the start.
Pick your solution.
I worked around this by using the 'supercede' option in dhclient.conf.
supercede nameserver ISPDNS1, ISPDNS2;
--
Micha
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]