What Does IPCONFIG /flushdns Do in Windows 2000?

The ipconfig /flushdns command in Microsoft Windows 2000 clears and resets the contents of the client-side Domain Name System (DNS) resolver cache. During network troubleshooting, executing this command forces the operating system to discard stored IP address mappings—both valid and invalid—and query DNS servers directly for updated records, resolving connectivity issues caused by outdated or corrupted cached data.

The Role of the DNS Resolver Cache

Windows 2000 introduced an integrated DNS client service that automatically caches successful host-to-IP lookups, as well as failed queries (known as negative caching). This mechanism reduces network traffic and speeds up subsequent requests to the same hostnames. However, if a network resource changes its IP address or experiences temporary downtime, the local cache retains the old or negative record until its Time to Live (TTL) expires.

Core Troubleshooting Functions

In a Windows 2000 networking environment, ipconfig /flushdns serves several critical diagnostic and corrective purposes:

  • Clearing Stale Host Records: When servers or workstations receive new IP addresses (such as after a DHCP lease change or manual reconfiguration), clients often attempt to connect to the previous address. Flushing the cache removes these obsolete mappings immediately.
  • Resolving Negative Cache Entries: If a client attempts to contact a server while it is offline or unreachable, Windows 2000 caches the failed lookup. Even after the server comes back online, the client will fail to connect until the negative cache is flushed.
  • Active Directory Migration and Diagnostics: Windows 2000 relies heavily on DNS for Active Directory operations, including locating domain controllers via SRV records. If domain controller records change, flushing the cache ensures clients query the DNS server for the correct, active domain controllers.
  • Isolating Name Resolution Failures: Network administrators use the command to eliminate local caching as a variable. If an issue persists after a flush, it confirms the problem lies either with the upstream DNS server configuration, network routing, or the destination host.

Command Execution

The command is executed from the Windows 2000 Command Prompt (cmd.exe):

ipconfig /flushdns

Upon successful execution, the operating system returns the message: Successfully flushed the DNS Resolver Cache. This confirms that all cached name resolution records have been purged from memory and subsequent network requests will trigger fresh DNS queries across the network.