When administrators want to edit the DNS settings and select which DNS server to use for vCenter server.
Prerequisites prior to changing the DNS IP for vCenter server.
To change the IP address of the appliance, verify that the system name of the appliance is an FQDN. If, during the deployment of the appliance, an IP address was used as a system name, it is recommended to update the PNID to FQDN first before changing the IP address.
Verify that the user who logs in to the vCenter Server instance in the vCenter Server Appliance is a member of the SystemConfiguration. Administrators group in vCenter Single Sign-On.
Changing the DNS server using the VCSA VAMI
https://appliance-ip-address-or-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
After network settings have been reconfigured and your vCenter Server Appliance is up and running, additional actions will be required.
All deployed plug-ins will need to be re-registered.
All custom certificates will need to be regenerated.
vCenter HA will need to be reconfigured.
Hybrid Link with Cloud vCenter server has to be recreated.
Active Directory will need to be rejoined.
Note: The additional actions are primarily noted for when performing significant network changes such as changing the FQDN and IP.
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
"
As an alternative to updating the DNS via the VAMI, it can be changed via command line.
Current Solution:
Changing the DNS server using DCLI:
appliancesh
dcli com vmware appliance networking dns servers get
(Note: The administrator@vsphere.local
credentials will be required when the command prompts for username and password)dcli com vmware appliance networking dns servers set --mode is_static --servers x.x.x.x --servers x.x.x.x
(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
/opt/vmware/share/vami/vami_config_net
Main Menu
0) Show Current Configuration (scroll with Shift-PgUp/PgDown)
1) Exit this program
2) Default Gateway
3) Hostname
4) DNS
5) Proxy Server
6) IP Address Allocation for eth0
Note: Take appropriate snapshots of the vCenter before proceeding with the changes. If the vCenter is in Enhanced Linked Mode, take offline snapshot of all the vCenters.