Difference between revisions of "Flushing vCenter DNS cache"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>VMWare_vCenter|VMWare vCenter</yambe:breadcrumb> =Flusing vCenter DNS cache= # ssh to vcenter # Run this command to restart resolver #:<pre> #:: systemct...")
 
m
Line 6: Line 6:
#:<pre>
#:<pre>
#::    systemctl restart systemd-resolved.service
#::    systemctl restart systemd-resolved.service
#:<pre>
#:</pre>
# Test with nslookup, if issue is still there continue
# Test with nslookup, if issue is still there continue
# Run following command and check if 127.0.0.1 is listed as preferred nameserver
# Run following command and check if 127.0.0.1 is listed as preferred nameserver

Revision as of 10:42, 17 August 2018

<yambe:breadcrumb>VMWare_vCenter|VMWare vCenter</yambe:breadcrumb>

Flusing vCenter DNS cache

  1. ssh to vcenter
  2. Run this command to restart resolver
    systemctl restart systemd-resolved.service
  3. Test with nslookup, if issue is still there continue
  4. Run following command and check if 127.0.0.1 is listed as preferred nameserver
    cat /etc/resolv.conf
  5. Run following command and check name of service (most probably dnsmasq)
    netstat -alnp | grep 53
  6. Restart dnsmasq using:
    systemctl restart dnsmasq
  7. Again test with nslookup and verify that old cached entry is not present


Refer:


<yambe:breadcrumb>VMWare_vCenter|VMWare vCenter</yambe:breadcrumb>