Centos 6.4 安装dnsmasq的方法
番茄系统家园 · 2022-09-04 12:05:21
1 下载源码
wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.45.tar.gz cp dnsmasq-2.45.tar.gz /usr/src tar zxvf dnsmasq-2.45.tar.gz免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/xtwt/205741lTaPJR.html。2 编译安装
cd /usr/src/dnsmasq-2.45 make install cp dnsmasq.conf.example /etc/dnsmasq.conf mkdir -p /etc/dnsmasq.d3 配置
vi /etc/dnsmasq.conf ########## resolv-file=/etc/dnsmasq.d/dnsmasq.resolv.conf strict-order listen-address= 192.168.1.xx addn-hosts=/etc/dnsmasq.d/dnsmasq.hosts在/etc/dnsmasq.d目录下新建2个文件
dnsmasq.resolv.confnameserver 8.8.8.8dnsmasq.hosts
ipdomain4 安装dig&nslookup
Ubuntu:sudo apt-get install dnsutilsFedora / Centos:
yum install bind-utils
猜你喜欢
最新应用
热门应用

