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

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

Procedure

  1. If you want to change the DNS settings temporarily, for example, for testing purposes, edit the DNS settings in vCloud Director.
    1. Log in directly or by using an SSH client to the vCloud 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.