配置 dnsmasq 就行了修改 /etc/dnsmasq.conf 添加如下address=/www.xxx.com/192.168.1.100写 /etc/dnsmasq.d 下的话需要 conf-dir=/etc/dnsmasq.d这个配置是高优先级的,就是不会去递归查询了,直接返回结果。