Some Linux distributions run a domain name resolution cache service in the background. Of course, some releases do not have this service. If your Ubuntu background has this program, you can clear the cache by restarting the nscd service. Why do we need to clear the DNS cache? Most DNS clients cache the results of domain name resolution locally, which can speed up access to the same address. When you open a single page, there are usually multiple access requests to the same domain name. Basically, each file, image, and style sheet ...... This
Some Linux distributions run a domain name resolution cache service in the background. Of course, some releases do not have this service. If your Ubuntu background has this program, you can clear the cache by restarting the nscd service.
Why do we need to clear the DNS cache?
Most DNS clients cache the results of domain name resolution locally, which can speed up access to the same address. When you open a single page, there are usually multiple access requests to the same domain name. Basically, each file, image, and style sheet ...... These are all DNS resolution requests for the same domain name within the same page.
Therefore, if you have cached incorrect DNS entries locally, you need to clear your cache so that the DNS client initiates a new DNS request and updates the resolution result. Of course, you can also let the system automatically overwrite the cached DNS entry after it expires ...... This usually takes 24 hours.
In Ubuntu, the DNS cache is cleared by restarting the nscd daemon.
To install nscd, run the following command in the command line:
Sudo aptitude install nscd
The command for clearing DNS cache in Ubuntu is:
Sudo/etc/init. d/nscd restart
OK!