轻型DNS服务器dnsmasq
源码安装
apt 安装
apt install -y dnsmasq
编辑配置
vim /etc/dnsmasq.conf
resolv-file=/etc/resolv.dnsmasq.conf
strict-order
listen-address=0.0.0.0
address=/vpn.vpn/10.22.35.1
server=8.8.8.8
bogus-nxdomain=8.8.8.8
重启服务
systemctl restart dnsmasq
尝试查询
dig @127.0.0.1 vpn.vpn
"随笔"类型下的内容为原创,转载请注明来源. http://www.cnblogs.com/DragonStart/