/etc/resolv.conf file reveals the following warning message: # Too many DNS servers configuredroot@vcenter [ ~ ]# cat /etc/resolv.conf
#...#...
nameserver 127.0.0.1nameserver dns_server1nameserver dns_server2# Too many DNS servers configured, the following entries may be ignored.nameserver dns_server1nameserver dns_server2search .
VMware vCenter Server 9.0.2
The systemd-resolved service caches and retains stale duplicate DNS nameserver entries. This causes the dynamically generated /run/systemd/resolve/resolv.conf file (which is symlinked to /etc/resolv.conf) to temporarily exceed the standard limit of nameservers.
Reboot the vCenter server - this enforces DNS to flush the cached entries and force it to re-read the current network configuration.
Workaround :
SSH session to the affected vCenter Server as root.
cat /etc/resolv.conf
cat /run/systemd/resolve/resolv.confRestart the systemd-resolved service: systemctl restart systemd-resolved.service
cat /etc/resolv.confLog in to the vCenter VAMI (https://<vcenter-fqdn>:5480) and navigate to Networking to confirm the duplicate entries have been cleared.