Use dnsmasq to speed up ADSL Internet access

Source: Internet
Author: User
Tags nameserver
Dnsmasq is used to speed up the Internet access of ADSL-Debian, a Linux release technology. For more information, see the following. This article uses DNSmasq to create a local DNS Cache library to improve browsing speed by reducing the time for the browser to interpret domain names

1. Install dnsmasq
Apt-get install dnsmasq

2. Edit the configuration file of dnsmasq.
Apt-get vim/etc/dnsmasq. conf

Find the following item
# Resolv-file =

Replace with the following statement
Resolv-file =/etc/resolv. dnsmasq. conf

3. Copy the original dns configuration to resolv. dnsmasq. conf.
Make sure that you have not changed the/etc/resolv. conf file.

Cp/etc/resolv. conf/etc/resolv. dnsmasq. conf

4. Edit resolv. conf.

Vim/etc/resolv. conf

Remove all domain name servers and add the following lines
Nameserver 127.0.0.1

Save and exit

5. Edit the adsl link configuration file to prevent resolv. conf from being overwritten after pppoe automatically connects to the network.

Vim/etc/ppp/peers/dsl-provider

Add # Before usepeerdns, that is, overwrite this statement.

6. Restart the dnsmasq service.
If you do not restart, you will find that the domain name cannot be resolved.

/Etc/init. d/dnsmasq restart

You can also change the dns address to opendns settings.

The address of opendns is (modify the/etc/resolve. dnsmasq. conf file ):
Nameserver 208.67.220.220
Nameserver 208.67.222.222
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.