Intranet DNS System
Function: Resolve intranet domain name and Dns-cache
Software: DNSMASQ
One. Installation
Yum-y Install DNSMASQ
Two. Server Configuration
1.vi/etc/resolv.conf using the DNSMASQ server when querying domain names locally
NameServer 127.0.0.1
2.vi/etc/dnsmasq.conf
RESOLV-FILE=/ETC/DNSMASQ.RESOLVCONF Specifies the DNS server files read from the upper layer
no-hosts specifies that the system default/etc/hosts file is not read
addn-hosts=/etc/dnsmasq_hosts specifies a hosts file that DNSMASQ reads
Strict-order is read strictly according to the server set order in the file specified by the Resolv-file parameter
3.vi/etc/resolv.dnsmaq.conf specifying upper-level servers
NameServer 202.106.46.151
4.touch/etc/dnsmasq_hosts Create a Hosts file that DNSMASQ read
Three. Client Configuration:
Vi/etc/resolv.conf
NameServer 192.168.7.163
Search lqhs.com
Three. Start
/ETC/INIT.D/DNSMASQ start
Chkconfig--level 235 DNSMASQ on
Intranet Simple DNS System