dsn服务器搭建

命令记录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
yum -y install dnsmasq

vim /etc/dnsmasq.conf
resolv-file=/etc/resolv.dnsmasq.conf
strict-order
listen-address=127.0.0.1,10.0.16.15
addn-hosts=/etc/dnsmasq.hosts
conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig

vim /etc/resolv.dnsmasq.conf
nameserver 127.0.0.1
nameserver 114.114.114.114
nameserver 8.8.8.8

vim /etc/dnsmasq.hosts
# 输入你需要解析的ip和域名

service dnsmasq restart
netstat -tlunp|grep 53
nephen wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!
坚持原创技术分享,您的支持将鼓励我继续创作!