VMware VCSA 6.7 – Clear Cache

If for some reason you are experiencing name resolution issues in your vSphere environment one useful troubleshooting task is to perform a flush of the local DNS cache on the vCenter VCSA. VCSA creates a local cache and uses the dnsmasq service to handle DNS queries internally in local cache; as you can see by the internal 127.0.0.1 IP listed in resolv.conf:

vcsaclearcache0

As VCSA uses Photon OS we leverage the systemctl command in order to restart services.

Begin by SSH to VCSA, we can view the current Photon OS version:

vcsaclearcache1

The command used to clear the DNS cache on vCenter VCSA:

systemctl restart dnsmasq.service

Checking service status after restart:

systemctl status dnsmasq.service

vcsaclearcache2

It may also be worth checking /etc/hosts for any unexpected entries(which of course there should be none as this file is not to be modified) as dnsmasq will query the contents of /etc/hosts during a DNS query:

vcsaclearcache3

 

 

 

3 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s