nathan.spear@iovation.com (Nathan Spear) writes:
> I am managing a network consisting of Windows and Linux clients. We
> have three dns suffixes that need to be used during name resolution.
> For the Microsoft clients using Group Policy works great. The problem
> I am having is with the Linux clients. Every time a machine gets a
> new DHCP lease the resolve.conf gets clobbered, requiring the user to
> edit the file again to add the proper dns suffixes.
>
> Does anyone know a way around this? Is there a way to prevent a
> Microsoft DHCP server from overwriting a Linux resolve.conf file?
>
> -Nathan
Not putting the search string in from DHCP, but if hard coding it on
the linux box is acceptable then, on Fedora Core 2 in file
/etc/sysconfig/network-scripts/ifcfg-ethX (where X is your interface )
add at the end:
SEARCH="dns.suffix.one dns.suffix.two etc"
That file is read by /sbin/dhclient-script which generates /etc/resolv.conf
Then run:
/sbin/ifup eth0
to regenerate resolv.conf
--
Giles Chamberlin