Created
August 1, 2015 05:53
-
-
Save Caixiaopig/64ca0c2f04438d752dff to your computer and use it in GitHub Desktop.
dnsmasq.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ITGeeker每次开启都提示错误,目的是让dnsmasq读取目录内所有配置文件 | |
#conf-dir=/etc/dnsmasq.d | |
#让dnsmasq读取你设定的resolv-file | |
#no-resolv | |
resolv-file=/etc/dnsmasq.d/resolv.dnsmasq.conf | |
no-poll | |
strict-order | |
#不读取系统hosts,读取你设定的 | |
no-hosts | |
addn-hosts=/etc/dnsmasq.d/dnsmasq.hosts | |
#dnsmasq日志设置 | |
log-queries | |
log-facility=/var/log/dnsmasq.log | |
#dnsmasq缓存设置 | |
cache-size=1024 | |
#单设置127只为本机使用,加入本机IP为内部全网使用 | |
listen-address=127.0.0.1,0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment