To view the current DNS resolver cache content and the entries preloaded from the Hosts file, go to the command prompt and type:
ipconfig /displaydns
Each entry shows the remaining Time to Live (TTL) in seconds. To clear the cache, go to the command prompt and type:
ipconfig /flushdns
Flushing the DNS cache clears all entries and reloads the entries from the Hosts file.
To refreshes all DHCP leases and re-registers DNS names, type:
ipconfig /registerdns