
The DNS domain name stands for the system, and is like a phonebook for the Internet. It translates the human-elective domain names into an IP address, so browsers know how to present a specific website. Without DNS, you have to remember and type IP addresses instead of URL, and it is not at all practical.
With DNS, DNS is something called cash. It stores DNS records for websites you see regularly, so loading websites in your browser is quite fast.
However, DNS cash is not correct and is susceptible to problems that can achieve inability to load sites (or slow loading speed), general networking issues and inability to crasing. DNS cache can be corrupt for several reasons (such as many IP addresses for single domains, deformed entries, or even a converted IP address). If you find your Linux machine experiencing a slow internet connection, while your other machines are not, the problem is isolated and it can be solved.
Too: How to turn on Android’s private DNS mode – and why it is a big mistake to shut it down
When the speed of your computer’s network slows down (and you have restarted your modem/router because your ISP will instruct you to do), one thing you can try is to flush DNS cash.
Here is how you do on Linux.
How to flush your DNS cache on linux
what you’ll need: The things you need for this is a running of Linux and a user with curb privileges.
The next thing you want to do is make sure your computer is using DNS cash. On Linux, it can be checked with the SystemCl Command:
Show more
Systemctl is-active system is report
Output should be told ActiveIf so, continue.
Determined statistics
In the output, you will see a list for the current cache size. My results show a cash with 14 entries (this is low because I have recently flushed my cash).
This is time to flush the cash on your system. To do this, we will be with Sollvectl commands such as:
Show more
Resolvectl Flush-Cash
After flushing your cash, you can make sure that it can again work by running the resolvectl command in this way:
Show more
Determined statistics
The current cache size must now be listed as 0.
Hujah! You have officially approved your DNS cash. Hopefully, this will solve your slow internet speed on your Linux machine. If not, you probably have other issues on your LAN or with your ISP and will need to be further investigated.
Too: 5 Surprisingly productive things that you can do with Linux Terminal
Get top stories of morning with us in your inbox every day Tech Today Newsletter.