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