This tutorial is going to show you how to flush your system’s DNS records in both Windows 7 and Ubuntu 12.04 (Precise Pangolin). The reason you’ll want to do this is simple. Whenever you’re unable to access certain resources or websites because of recent changes, and that your system’s DNS resolver still has old records pointing to those resources, you have to clear out those old records before you can access those resources. When you access network resources or websites, your computer keeps a records of how it accessed those resources so that if you need to access them again, it can quickly find them. Now, if the information of those resources have changed, you may have to flush out or clear your DNS resolver, and that’s what this tutorial is about.
- Flash DNS records in both Windows 7 and Ubuntu 12.04
Flush DNS Cache in Windows 7
To flush your system DNS records in Windows 7, go to ‘Start –> All Programs –> Accessories –> Command Prompt’ and run the below command.
Flush DNS Cache in Ubuntu 12.04 (Precise Pangolin)
To flush your system DNS Cache Resolver in Ubuntu 12.04, press Ctrl – Alt – T on your keyboard to open Terminal. When terminal opens, run the commands below to clear it.sudo /etc/init.d/dns-clean
That’s it! Try again to see if you can now access websites that you previously couldn’t because of DNS resolver issues.