This article covers how to flush the DNS cache on Ubuntu. If the sites are not loading properly or you are receiving outdated sites, try to flush the DNS cache to see if the issue resolves.
Remember, after the DNS cache is flushed, sites will first load slightly slower.
But once the DNS cache is re-populated, sites will be loaded faster.
Facts about flushing DNS cache on Ubuntu:
1. DNS cache is a temporary database that stores information about previous DNS lookups.
2. Whenever you visit a website, your OS and web browser will keep a record for the domain and the corresponding IP address.
3. Flushing DNS cache eliminates the need for repetitive queries to the remote DNS servers and allows your OS or browser to resolve the website's URL quickly.
How to use dns-clean to flush DNS-Cache ?
You can clear the DNS cache is by starting the dns-clean utility. Run the following command in your Terminal to do so:
$ sudo /etc/init.d/dns-clean start