After making changes to the DNS server, vCenter may fail to resolve IP addresses or Fully Qualified Domain Names (FQDNs) correctly. The server may still reference outdated DNS information, leading to incorrect IP resolutions, even if a DNS lookup (using nslookup
) shows the correct result.
Symptoms:
nslookup
to the DNS server returns the correct result.
Pinging an FQDN returns an outdated or incorrect IP address.
The old DNS information is cached within vCenter, preventing it from reflecting recent DNS changes.
To clear the DNS cache and refresh the DNS resolution, follow these steps:
Enable SSH on vCenter
First, ensure SSH is enabled on your vCenter Server. For instructions, refer to the official VMware documentation:
Enable or Disable SSH and Bash Shell Access on vCenter Server
SSH into vCenter
Connect to your vCenter server using SSH. You can use a terminal or an SSH client like PuTTY.
Clear the DNS Cache
Run the following commands to restart the DNS-related services:
Verify DNS Resolution
After restarting the services, verify that vCenter can now resolve the correct IP or FQDN.