I am in search of a way to flush my DNS cache on my website running under Windows 2003 server. Is this possible? Can I flush dns cache on windows domain controller? Or does anyone have any other ideas how this could be automated?
I am in search of a way to flush my DNS cache on my website running under Windows 2003 server. Is this possible? Can I flush dns cache on windows domain controller? Or does anyone have any other ideas how this could be automated?
In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache:
You can also use the command ipconfig /displaydns to view the DNS resolver cache.Code:C:\>ipconfig /flushdns
You can also do so using the following script as an alternate:
Just save this script in a file and run it whenever you want.Code:dim ws set ws=CreateObject("Wscript.Shell") ws.exec "%COMSPEC% /c ipconfig /flushdns"
This can be achieved under Windows 2003 server in two ways:
- Start the Microsoft Management Console (MMC). From the View menu, select Advanced. Select and right-click the Cached Lookups tree node from the left-hand pane. Select Clear Cache from the context menu.
- From the command prompt, type:
Code:dnscmd /clearcache
Bookmarks