Background
When manually editing the resolv.conf file to add search domains, the entries are not persistent after a XenServer Host reboot.
Procedure
Use the following steps to complete the task:
1. To identify the management NIC on a given host run, use the following command:
xe pif-list host-name-label=<hostname of the xenserver to modify> management=true
2. To add the static search domain entry to the resolv.conf:
xe pif-param-set uuid=<pif uuid> other-config:domain=sl-netbase.com
3. Reboot the XenServer Host.
4. A cat /etc/resolv.conf should now show 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
Linux Tutorials, HowTo's, and Tips