How to clear your DNS cache

DNS server is the translation of any domain's IP. When your PC is connected to internet, it stores all IPs you are visiting to its cache, to avoid searching for them again in the future.

However, sometimes it is needed to clear this cache, when for example you have problem with a site that it is moved and its IP has changed, but you PC has the old IP stored.

Open a new command line window (by pressing Win+X and then choose Command Prompt to run as Admin) and give this command:

ipconfig /flushdns

and press Enter.

However, sometimes this can't help, so you have to give some more commands:
ipconfig /registerdns and press Enter.
ipconfig /release and press Enter.
ipconfig /renew and press Enter.
netsh winsock reset and press Enter.

Then, restart your PC and your router.


Welcome to my blog. My name is Akis Mparekas. I am a freelance web developer. I like to try and make stuff, either for work or hobby. I love good beer, bad movies, and anything retro.

Respond on “How to clear your DNS cache

Leave a Reply

Please log in or register to add a comment.