Flush DNS

The DNS, which is short for Domain Name Server, is responsible for resolving domain names into specific IP addresses. This simply means that a DNS translates the URLs you type on your address bar into an IP address to actually access the site/information you’re looking for. However, there are times when one computer can’t access the same web page or site that another computer on the same network can.

So, for instance you can’t open a page on the Internet on your computer but your brother has no problem opening it on his then the issue isn’t about the site. It has something to do with your machine’s DNS cache. Solving this problem requires you to reload your machine’s cache. To do that requires you to do a flush DNS cache.

What You Need to do a Flush DNS Cache on Various Platforms

The obvious thing you need to flush DNS cache on different machines is the supported operating system for that computer system. At times, you may be required to log in as an administrator for that machine, which is the case for some versions of the Windows family of operating systems. You will also be required basic knowledge on how to open a command prompt, terminal window, or command shell for a specific operating system on the machine you’re working on.

Steps to Flush DNS Cache in Windows

  1. Like any of the operating systems we’ll go over, the first thing you need to do in Windows is to open a command prompt. You do this by going to Start then Run and in the Open box that pops up type the letters ‘cmd’. This will open a new window with a black screen, a prompt, a blinking cursor where you can type in commands.
  2. At the command prompt you type in the following command ‘ipconfig /flushdns’. Another option is to type a couple of commands at the prompt. First is ‘net stop dnscache’ and then hit Enter. Second is ‘net start dnscache’ and hit Enter again.

How to Flush DNS Cache in Linux

The first thing you need to do is to restart nscd daemon. After which you have to login to your terminal or your shell and issue a couple of commands. First is ‘root@support [~]# cd /etc/rc.d/init.d and then root@support [etc/rc.d/init.d]# ./nscd restart. After these commands are issued your DNS cache should be flushed.

Flush DNS Cache in Mac

Like the other two previously mentioned operating systems, one must open a terminal or command window in order to clear the DNS cache in Mac OS. You then issue a command to flush the DNS cache. Type ‘$ lookupd -flushcache’ for Tiger Mac or type ‘$ dscacheutil -flushcache’ for Leopard Mac in order to do this.