Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. Using dnscmd > Clearing the DNS Cache

Clearing the DNS Cache

When a DNS server queries a forwarder, it keeps the result in the DNS cache for the time to live (TTL) specified in the DNS record. You can use dnscmd to clear this DNS cache.

Clear Cache CommandsComments
Clear the DNS server cache.
/clearcache
dnscmd server /clearcache
c:\>dnscmd /clearcache
c:\>dnscmd dc1 /clearcache

If executed without a server name, it clears the DNS cache on the current server (assuming it’s a DNS server). You can also specify a remote DNS server for the command. Figure 5-2 shows how this is done from the DNS console.
Clear the host cache.
c:\>ipconfig /flushdns

You can clear the host cache on any computer using the ipconfig /flushdns command.

Note

Although you can clear the host’s cache using the ipconfig /flushdns command on any computer, this is not the same as clearing the cache with the dnscmd or in the DNS console.



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial