Clear DNS resolution cache under UbuntuLinux

Source: Internet
Author: User
Tags dns entry
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. You can also wait.

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. However, some releases will 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.

In Ubuntu Linux, the DNS cache is washed out 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 restar

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.