Domain Search Override

May 2012


If you are in domain business.mydomain.com, but you want to be able to call the servers in sister domain work.mydomain.com by their short names, then you need to add a search entry in /etc/resolv.conf. However, on many Linux, resolv.conf is maintained by networking subsystems, so you must add the line indirectly.

With dhclient, you edit /etc/dhcp/dhclient.conf:

<snip>
append domain-search "workspace.rug.nl", "rug.nl";
<snip>
    

(and then run sudo dhclient eth0.

Or if you 're using resolvconf, as many Ubuntu users are, edit /etc/resolvconf/resolvconf.d/tail:

search workspace.rug.nl rug.nl