Sunday, June 9, 2019

Flush the DNS cache in VMware Components (CLI)

Sometimes we want to clean DNS cache of some virtual components to reconnect / re-establish connections between them. For example if you change the FQDN of ESXi hosts that has been registered with a Manual A record, maybe vCenter reconnect operation fails, because it still try to connect to the old record. So if you need to fix it, you should to do DNS cache cleaning. Now let's go to do this:

For vCenter Server Appliance (VCSA):
# systemctl restart dsnmasq

For ESXi Host:
# /etc/init.d/nscd restart

For vRealize Operation Manager (vROM):
# /etc/init.d/nscd restart
(remember you may need to run this command with sudo if you login with admin, then you need to set root's password in the first try to access)

For vRealize Log Insight (vRLI):
# /etc/init.d/nscd restart
(Just note you should login directly with root account)



No comments:

Post a Comment

I will start a new journey soon ...