Getting rid of

Rashkae ubuntu at
Mon Apr 14 20:44:59 UTC 2014

On 14-04-14 04:16 PM, Hendrik Greving wrote:
> Hi,
> how to I permanently get rif of in the search nameserver
> list in /etc/resolv.conf. It constantly gets regenerated after reboot and
> messes up nameserver lookups in my my network. Everything works when I
> remove it.
> Thanks for any hint,
> Hendrik
You can edit the /etc/dhcp/dhclient.conf file

In the Request option, remove domain-search, (as well as the 
dhcp6-domain-search) options.  That should prevent them being re-populated.

(As mentioned in another reply, your dhcp server should be configured to 
hand out something that works on your network, even if you simply use 
.localdomain.  But this will prevent the client from being affected.)  I 
can't figure out why would have an effect that 
removing it helps.   There might some some other kind of underlaying 
issue with your network config.

More information about the ubuntu-users mailing list