20 C
Texas
Melhttp://www.osradar.com
Guru Unix /Linux and GNU supporter

How to Reset DNS Cache

In the world of internet, there are lots of things ongoing at every single moment. Since the starting, the internet has evolved quite a log despite the fact that we, the end-users, aren’t that much familiar with those. DNS is one of the main parts of the play that makes sure that you connect to the proper server instead of a wrong one.

DNS is a huge database service where all the websites and their respective IP addresses are stored. Whenever you type any website URL in your browser, it contacts with the DNS and retrieves the server’s IP address. Then, using the IP address, you get to enjoy all the great services – YouTube, Google, Facebook etc. You should switch to a faster DNS server for enjoying better internet quality.

In some cases, your browser may show DNS errors. The browser saves a copy of the DNS cache in its memory so that instead of asking the DNS server every single time, it can directly load the IP address from the memory, saving further time. However, caches are temporary files and can become corrupted in cases. The server’s address may also change time to time.

In such scenario, you have to refresh the DNS cache of your browser. Let’s take a look how to do it.

  • Chrome

- Advertisement -

Chrome is the most popular web browser to date. For clearing the DNS cache in Chrome,

  • Go to chrome://net-internals/#dns.
  • You’ll see a button “Clear host cache”. Click/tap it and restart your browser.
  • Firefox

If you’re using Firefox, follow these steps.

  • Go to “about:config”.
  • Search for the following preference name – “network.dnsCacheExpiration”.

  • Change the value to 0.
  • Restart your browser

If you are Windows, then follow these steps:

  • Start an elevated Command Prompt.
  • Run the following command:
ipconfig /flushdns

For MacOS Yosemite and later versions, use this command in the Terminal:

sudo killall -HUP mDNSResponder

If you’re an iOS user,

  • Enable “Airplane” mode and leave the device for 15 seconds.
  • Disable “Airplane” mode.

Now, your device should work properly with your internet connection.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article