You want to edit the DNS settings on vCenter Server to use a different DNS server IP address.
VMware vCenter Server
Prerequisites prior to changing the DNS IP for vCenter server.
Changing the DNS server using the VCSA VAMI
https://<vCenter_IP/FQDN>:5480"I acknowledge that I have made a backup of my vCenter Server and unregistered extensions before continuing with my network configuration"
Next Steps:
Sometimes, the vCenter will not start after changing DNS servers and encounter an error message “No healthy upstream” when connecting with a browser.
Another error message may appear as: "Service did not set the task state"
If the vCenter Appliance is using an IP address as the hostname, an error may appear as: "Specified hostname is invalid"
If you are unable to update the DNS configuration via the VAMI, it can be changed via command line. See below:
Current Solution:
Changing the DNS server using DCLI:
appliancesh
(Note: The [email protected] credentials will be required when the command prompts for username and password)dcli com vmware appliance networking dns servers set --mode is_static --servers #.#.#.# --servers #.#.#.#
(Note: To enter multiple entries, the --server flag must be attached multiple times. Running the command again will just overwrite the existing values)
Legacy Solution:
Changing the DNS server using the VAMI_CONFIG_NET
sudo /opt/vmware/share/vami/vami_config_net