After the VMware Cloud Director deployment, you can change the DNS server or servers of the VMware Cloud Director appliance.

Important: You cannot edit the hostname of the appliance. You must deploy a new appliance with the desired hostname.

Prerequisites

To make the changes to the OVF properties permanent, you must use the vSphere UI to change the OVF property values. See the Configure vApp Properties topic in the vSphere Virtual Machine Administration guide.

Procedure

  1. If you want to change the DNS settings temporarily, for example, for testing purposes, edit the DNS settings in VMware Cloud Director.
    1. Log in directly or by using an SSH client to the VMware Cloud Director appliance console as root.
    2. (Optional) Verify the current DNS configuration by running the following command:
      ovfenv --key vami.DNS.VMware_vCloud_Director
    3. Change the DNS server or servers.

      To specify multiple DNS servers set DNS_server_IP as a comma-separated list with no spaces.

      ovfenv --key vami.DNS.VMware_vCloud_Director --value DNS_server_IP
    4. For the changes to take effect, restart the VAOS service.
      systemctl restart vaos.service
  2. If you want to change the DNS settings permanently, use the vSphere UI to set the value of the vami.DNS.VMware_vCloud_Director property to the new DNS server IP address.
    To specify multiple DNS servers, enter a comma-separated list with no spaces.
    Note: You must power off the VM to change the value of the property in vSphere.