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.
- If you want to change the DNS settings temporarily, for example, for testing purposes, edit the DNS settings in vCloud Director.
- Log in directly or by using an SSH client to the vCloud Director appliance console as root.
- (Optional) Verify the current DNS configuration by running the following command:
ovfenv --key vami.DNS.VMware_vCloud_Director
- 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
- For the changes to take effect, restart the VAOS service.
systemctl restart vaos.service
- If you want to change the DNS settings permanently, use the vSphere UI to set the value of the
vami.DNS.VMware_vCloud_Directorproperty 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.