Linux下软件环境安装(10)-dnsmasq安装与配置

sudo apt-get -y install dnsmasq

sudo vi /etc/dnsmasq.conf
address=/double-click.net/127.0.0.1
server=192.168.1.1

ping double-click.net
PING double-click.net (91.195.240.126) 56(84) bytes of data

cat /etc/resolv.conf
sudo /etc/init.d/dnsmasq restart

参考文献:
https://www.cnblogs.com/ilanni/p/4927332.html

标签: none

添加新评论