This article will help in bypassing the DNS resolution for a vCenter Server when the DNS Server is not available.
Situations where this could apply:
VMware vCenter Server 8.0.x
VMware vCenter Server 7.0.x
VMware vCenter Server 6.x
*Note: Once DNS resolutions issues are resolved (example faulty DNS server), it is recommended to undo these changes. Using this workaround long term could cause DNS resolution issues as VC will no longer be resolving its name via the designated DNS server.
dnsmasq.conf filecp /etc/dnsmasq.conf /etc/dnsmasq.conf.originaldnsmasq.conf file and add addn-hosts=/etc/dnsmasq.hosts to the endExample of edited dnsmasq.conf
listen-address=127.0.0.1
bind-interfaces
user=dnsmasq
group=dnsmasq
no-negcache
no-hosts
log-queries
log-facility=/var/log/dnsmasq.log
domain-needed
dns-forward-max=150
cache-size=8192
neg-ttl=3600
addn-hosts=/etc/dnsmasq.hosts
/etc/ called dnsmasq.hostsvi /etc/dnsmasq.hostsIP [TAB] VCFQDN [TAB] VCSHORTNAME
For example:10.10.10.10 vcenter.example.com vcenter:wqsystemctl restart dnsmasq.serviceThis method can also be used while updating the case of a vCenter PNID, instead of creating a temporary DNS record for the process.