How to Flush DNS on Windows XP, Windows Vista and Window 7

Most windows workstation or notebook that are used to connect internet or used to browsing the internet do what is called domain name system (DNS) caching. The windows workstation with DNS client service enabled will automatically cache IP Addresses and other DNS results. If DNS client service stop, the workstation will not able to resolve DNS name and will not caches the DNS name. DNS cache stores the locations (IP addresses) of pages that workstation have recently viewed. In this post, i will show the basic command to Flush the DNS on Windows.

Flushing the DNS on Windows NT, Windows 2000 and Windows XP :
Flushing the DNS on older version of Windows operating systems are very easy as below :

1. Open up a command prompt (Start > Run > “cmd.exe” > OK).
2. Type in the command “ipconfig /flushdns

Flushing the DNS on Windows Vista and Window 7 :

Due to Microsoft security additions on the newer versions of Windows operating system such as Windows Vista and Window 7, you must run the command prompt with administrator privileges.

1. Click the start button and navigate to the command prompt (Start > All Programs > Accessories > Command Prompt)
2. Make sure that you right click on the command prompt application and choose “Run as Administrator”
3. Type in the command “ipconfig /flushdns

Examples :

C:\>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.


Leave a Reply