dd-wrt的dnsmasq配置
1、dhcp设置中Use DNSMasq for DHCP / DNS 选中
2、dnsmasq设置中Local DNS要选中
3、dnsmasq会自动读取/tmp/hosts文件,重启后/tmp中的内容将会重置
4、因此建议开启jffs,并指定hosts,在Additional DNSMasq Options中填写
addn-hosts=/jffs/dnsmasq.hosts
5、也可以设置不读取resolv.conf文件,直接在dnsmasq中设置dns服务器,在Additional DNSMasq Options中填写
no-resolv
server=8.8.8.8
server=8.8.4.4
server=8.8.8.8
server=8.8.4.4
6、还可以将某个域名提交给指定的dns服务器解析,在Additional DNSMasq Options中填写
server=/.google.com/208.67.222.222#443
server=/.google.com.hk/208.67.222.222#443
server=/.google.com.hk/208.67.222.222#443
7、如果Additional DNSMasq Options里的内容太多,也可指定一个目录来读取这些配置信息
conf-dir=/opt/etc/dnsmasq.d
相关推荐
Antech 2020-04-20
tianchaoshangguo 2019-12-20
tianchaoshangguo 2019-12-05
tianchaoshangguo 2019-12-01
xzhuatoy 2019-11-03
SuSe 2017-01-04
wqx 2016-11-23
happypant 2010-12-06
JshcsdnSpace 2009-05-25
JeremyLiu 2019-10-19
龍大笔记 2014-10-22
非竹用啥就学啥 2016-10-27
wqx 2010-12-22
龍大笔记 2010-11-16
wqx 2010-10-20
chwzmx 2019-06-29