This article describes how to add a permanent search domain entry in the resolv.conf file of a XenServer Host. When manually editing the resolv.conf file to add search domains, the entries are not persistent after a XenServer Host reboot.
The following are the requirements:
Access to the command line interface of the XenServer host
The Network Interface Cards (NICs) on the XenServer host must be configured with a static IP address
Complete the following procedure:
Identify the management NIC on a given host run, using the following command:
xe pif-list host-name-label=<hostname of the xenserver to modify> management=true
Add the static search domain entry to the resolv.conf:
xe pif-param-set uuid=<pif uuid> other-config:domain=searchdomain.net
Reboot the XenServer Host.
The cat /etc/resolv.conf displays the search domain entry.
Note: Multiple search domain entries can be entered separated by commas:
xe pif-param-set uuid=<pif uuid> other-config:domain=searchdomain.net,searchdomain2.net