Bob Proulx wrote: > H.S. wrote: > > How do I tell this "auto-configuration" to ignore the dhcp > > nameservers and to use the ones I specify instead? > > I haven't tried this but I would install 'resolvconf' and then specify > them with the dns-nameservers option listed above. I think that will > override the dhcpd nameservers. I think. > > auto eth0 > allow-hotplug eth0 > iface eth0 inet dhcp > dns-search example.com > dns-nameservers 208.67.222.222 208.67.220.220 > > Please report the results either way.
Update: A little searching found this in 'man dhclient.conf'. The supersede statement supersede [ option declaration ] ; If for some option the client should always use a locally-configured value or values rather than whatever is supplied by the server, these values can be defined in the supersede statement. Therefore whether using resolvconf's configuration to override works or not a pure dhclient solution would be to configure the dhclient configuration file /etc/dhcp/dhclient.conf to supersede the nameservers from the dhcp server. I think something like this: supersede domain-name-servers "208.67.222.222 208.67.220.220"; Bob
signature.asc
Description: Digital signature