1.安装dnsmasq
yum install -y dnsmasq
2.配置配置文件
vim /etc/dnsmasq.conf
no-hosts
resolv-file=/etc/resolv.dnsmasq.conf
strict-order
listen-address=192.168.0.43,127.0.0.1
addn-hosts=/etc/dnsmasq.hosts
nameserver 127.0.0.1
nameserver 8.8.8.8nameserver 115.115.115.115
192.168.1.7 nexus.szhmxxkj.com
增加上内网DNS服务器ip
原文:https://www.cnblogs.com/cuiyupu/p/11601880.html