This article provides steps to change the DNS server's IP address on an ESXi server.
VMware vSphere ESXi
VMware vCenter Server
DNS Server IP change on ESXi host:
Method 1: Using vSphere Client (UI)
If the host is managed by vCenter and reachable, you can update DNS settings directly from the UI.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Method 2: Using Direct Console User Interface (DCUI)
This method is useful when the host is not reachable on the network or SSH is disabled.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Method 3: Using ESXi Shell / SSH
esxcli network ip dns server list
esxcli network ip dns server add -s <DNS_IP_Address>
esxcli network ip dns server remove -s <DNS_IP_Address>
/etc/init.d/hostd restart && /etc/init.d/vpxa restart
Note:
Ensure the VLAN is correctly configured if you are using VLANs.
You can also configure the hostname and DNS suffixes in the DCUI.