I am trying to get a domain xxx.yy
into the /etc/resolv.conf
. Before, there are only nameserver entries. I add the domain to the previously empty /etc/resolvconf/resolv.conf.d/base
. After running resolvconf -u
, /etc/resolv.conf
contains a search xxx.yy
instead of the domain xxx.yy
. Why does this happen?
It happens because the
search
feature supersedes thedomain
feature. Unlikedomain
,search
accepts multiple arguments.Consider
domain
to be obsolete.