How to Add a Permanent Search Domain Entry in the Resolv.conf File of a XenServer Host

How to Add a Permanent Search Domain Entry in the Resolv.conf File of a XenServer Host

book

Article ID: CTX118840

calendar_today

Updated On:

Description

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. 


Instructions

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:

  1. 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

  2. Add the static search domain entry to the resolv.conf:
    xe pif-param-set uuid=<pif uuid> other-config:domain=searchdomain.net

  3. Reboot the XenServer Host.

  4. 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

Issue/Introduction

This article describes how to add a permanent search domain entry in the resolv.conf file of a XenServer Host.