First, the service side: 1. Installing Dnsmasqapt-get install DNSMASQ2. Add domain name resolution record cat/etc/hosts10.1.10.133 AAA.BBB.COM3. Configure the parent DNS server address (generally public DNS) Cat/etc/resolv.confnameserver 114.114.114.1144. Restart DNS service/ETC/INIT.D/DNSMASQ Restart client: DNSMASQ address cat/etc/resolv.confnameserver 10.1.10.133 Third, test: 1. Ping Aaa.bbb.com2 is being parsed. Anti-parsing dig-x 10.1.10.133===================================== Description =========================================http:// Www.thekelleys.org.uk/dnsmasq/has a source package to download some of the machines want to access through a custom domain name, but each person each machine maintains a hosts word will be very troublesome, so want to build an internal DNS server, Resolves the custom domain name. Dig command-X addr Current system Cat/etc/issuedebian Gnu/linux 5.0 \ n \l
This article is from the "7928217" blog, please be sure to keep this source http://7938217.blog.51cto.com/7928217/1642219
DNSMASQ (intranet DNS)