Force Windows DNS to Flush Cache
-
I'm on a train and it is hard to look this up. Anyone know how to make a Windows DNS server (yes, it's on a DC) to flush its cache and donfresh lookups?
-
@scottalanmiller ipconfig /flushdns should do it I think
-
@jt1001001 said in Force Windows DNS to Flush Cache:
@scottalanmiller ipconfig /flushdns should do it I think
Even for the server and what it hands out?
-
Even for the server and what it hands out?
-
Open the DNS Manager, right click on server name, and then Clear Cache?
-
Or from the command prompt, try
dnscmd /clearcache
-
@jt1001001 said in Force Windows DNS to Flush Cache:
@scottalanmiller ipconfig /flushdns should do it I think
This only clears the cache for client machines, AFAIK.
-
Windows Server in powershell is Clear-DnsServerCache
-
@dafyre My apologies, you are correct ipconfig /flushdns is client cache only.
-
We probably need to do both. But we knew the one
-
@jt1001001 said in Force Windows DNS to Flush Cache:
Windows Server in powershell is Clear-DnsServerCache
I couldn't find that one with a google search... My GoogleFu is weak today.
-
@dafyre said in Force Windows DNS to Flush Cache:
Or from the command prompt, try
dnscmd /clearcache
This is the one to use first on dns servers. Then the regular one for clients afterwards.
-
If you're going to use Clear Cache in the DNS snap-in GUI, you need to enable Advanced Features in the View drop down, to see that option.
-
Use the clear-dnsservecache cmdlet
https://technet.microsoft.com/en-us/itpro/powershell/windows/dns-server/clear-dnsservercache