配置服务器
yum install dnsmasq -y
编辑iptables文件:
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
启动DNS服务器
chkconfig dnsmasq on
service dnsmasq start
配置客户端
yum install dnsmasq -y
编辑iptables文件:
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
启动DNS服务器
chkconfig dnsmasq on
service dnsmasq start