Make your linux DNS domain name faster-Linux Enterprise Application-Linux server application information. The following is a detailed description. When I was using LINUX, I felt that the host was being resolved when I opened the website in firefox. Ie is connecting to the host .. What makes us connect to this let point for the first time. The second time I spent less time parsing this domain name. Some may say that history is acceptable. However, I think the history record only records the content of the webpage. Domain names should not be cached .. I use cent OS as an example. Here we will introduce a software package named dnsmasq which may be used for yum installation.
1: yum-y install dnsmasq
2: hash
3: Modify/etc/dnsmasq. conf
Remove # In Front Of listen_address =, and then add the local loopback address 127.0.0.1 to the end of =.
Or add a line at the bottom of the configuration file.
Listen-address = 127.0.0.1
Modify the/etc/resolv. conf file
Change the first dns server to nameserver 127.0.0.1
4: then start the dnsmasq Service
/Etc/rc. d/init. d/dnsmasq start
Chkconfig dnsmasq on
Now I will post the domain name resolution time before dnsmasq is installed and the time used to resolve the domain name after dnsmasq is installed.
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.