DNS cache clear the local cache

DNS cache is a temporary database σε ένα λειτουργικό σύστημα που αποθηκεύει όλες τις DNS αναζητήσεις που πραγματοποιείτε ( από τους ιστότοπους που έχετε επισκεφθεί και ).

Its mode of operation is quite simple:

When you visit a site multiple times, your operating system stores the site information in the local cache. So instead of having to send DNS queries to an external DNS server each time, it receives them locally from the DNS cache. That's why loading these sites is so much faster.

However, there are times when DNS cache can be corrupted. You may also notice that if a site changes, your browser insists on loading the old (cached) version of the site.

When that happens, what do you do? You are emptying the DNS cache into your operating system. Once the DNS cache is empty, the initial loading of the sites will be slightly slower, but it will be correct. Once a page's DNS is saved again it will regain the speed you knew.

How to clear the DNS cache depends on your operating system. Let's see how you can free up DNS cache on Windows and Linux.

Windows:

Look up the term cmd. The black command line icon will appear. Copy - paste the following command and press enter

ipconfig / flushdns

That's it.

Linux:

You will need a Linux distribution that uses systemd and a user with sudo privileges. This same process will work with both Debian-based distributions- but also on Red Hat-based distributions.

Make sure you are running systemd. To do this, open a terminal and give the command:

sudo systemctl is-active systemd-resolved

You should see:

active

Let's clear the memory

sudo systemd-resolve --flush-caches

Warning

If you are using a Red Hat-based distribution other than CentOS, you may find that the systemd-resolve command does not work. In this case, you will need to try one of the following commands to clear the DNS cache:

sudo systemctl restart nscd.

THE:

sudo systemctl restart named

Debian

In case the order

sudo systemd-resolve --flush-caches

gives you the following message

run the following command:

sudo systemctl enable systemd-resolved.service

Then try running the first command again:

systemd-resolve –flush-caches

To verify that the values ​​are zero run the following command

sudo systemd-resolve --statistics

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).