How To Flush DNS For Windows and Linux Operating Systems

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

Operating systems like Windows, Linux, Bsd runs some mechanism to cache DNS records in the local system. Caching DNS records locally gives less bandwidth and fast internet access to the user. In this post we will look how to flush DNS cache in  the operating systems like Windows and Linux (Ubuntu,CentOS,Fedora,Debian etc.)

Flush DNS For Windows

Windows operating system provides flush operation from command line with ipconfig tools. Flushing DNS cache required Administrator privileges in Windows operating system from Windows Vista to Windows 10. Windows XP by default provides Administrator privilege. We will use ipconfig flush DNS mechanism for Windows.

Open MSDOS command as Administrator by clicking right mouse button.

Open CMD.exe

Open CMD.exe

Click Yes to open MSDOS prompt as Administrator privileges

Open CMD.exe

Open CMD.exe

We will use ipfoncifg command with the /flushdns option like below. Write command below to flush DNS cache

Flush DNS For Windows

Flush DNS For Windows

Successful. We have completed clearing DNS cache

Flush DNS For Linux

Linux operating system provides different tools and mechanism for DNS caching. We will look most popular and useful two method to clear DNS cache. These operations requires root privileges.

Method 1 is restarting Network Services of the Linux operating system.

Ubuntu, Debian:

CentOS, Fedora:

Flush DNS For Linux

Flush DNS For Linux

Flush DNS with Name Service Cache Daemon

Linux operating systems uses some cache mechanism for DNS and IP matches. This makes the DNS queries run faster without asking a DNS server every time. Most of the requiring DNS queries will be answered from DNS cache. This may create problem after some time. We can flush and clear this DNS cache named nscd with the following command. This command will restart nscd daemon.

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM
LEARN MORE  How To Fix Dns Lookup Failed

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)