Two "search" entries in resolv.conf

Posted by Carsten on Ask Ubuntu See other posts from Ask Ubuntu or by Carsten
Published on 2012-05-04T08:44:23Z Indexed on 2012/11/04 11:24 UTC
Read the original article Hit count: 306

Filed under:
|

I am using 12.04 and have a problem with my resolv.conf

There are 2 search lines there. But I can only explain one. I would like to get the other one removed.

carsten@myubuntubox:~$ cat /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search aaaa.bbb.example.net
search something
nameserver 1.2.3.4
nameserver 1.2.3.5

I can't explain the search aaaa.bbb.example.net Where does it come from?

The last 3 lines (like I want come from /etc/resolvconf/resolv.conf.d/tail This is good.

But where is the other search line coming from? In /etc/dhcp/dhclient I removed the requests for domain-name-servers, domain-search, but the lines are still in there.

Should I remove the dhcp6.domain-search as well?

© Ask Ubuntu or respective owner

Related posts about resolv.conf

Related posts about dhclient