一般配置下面三處即可
# vim /etc/dnsmasq.conf resolv-file=/etc/dnsmasq.resolv.conf addn-hosts=/etc/dnsmasq.hosts conf-dir=/etc/dnsmasq.d /etc/init.d/dnsmasq restart