1.1

轻型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
posted @ 2017-12-26 01:31  asml  阅读(249)  评论(0编辑  收藏  举报
@.@