Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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 Commands | Comments |
|---|---|
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. |