Desktop Ubuntu uses Bind9 as the cache Domain Name Server to increase resolution speed

Source: Internet
Author: User
1 desktop Ubuntu installation bind9: sudoapt-getinstallbind92 modify configuration file sudovim/etc/bind/named. conf. options Delete the preceding // note symbol for the remarks, and then add some dns Server IP addresses & nbsp

1 bind9: sudo apt-get install bind9 on Ubuntu

2. modify the configuration file sudo vim/etc/bind/named. conf. options.
These are the remarks to delete the previous // remarks, and then add some dns Server IP addresses.
Forwarders {
192.168.2.1;
202.106.0.20;
202.106.196.115;
};

3. After dns is configured, the computer becomes the dns Cache Server, that is, all domain names can be saved to the cache only once, And the next resolution will be very fast, directly from the local cache
You can resolve the domain name without connecting to the dns server of China Telecom, which can effectively increase the speed of accessing the Internet. In the lower left corner of Firefox, you will no longer see text like sina.com being parsed.

4 restart the dns server sudo/etc/init. d/bind9 restart

5. Set the dns address for the local connection
Ifconfig // view the IP address of your local machine
Sudo vim/etc/resolv. conf // Add your dns address here

6. restart the network after adding the sudo/etc/inti. d/networking restart.

In this case, is the Internet surfing fast?

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.