Skip to content

Instantly share code, notes, and snippets.

@Caixiaopig
Created August 1, 2015 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Caixiaopig/64ca0c2f04438d752dff to your computer and use it in GitHub Desktop.
Save Caixiaopig/64ca0c2f04438d752dff to your computer and use it in GitHub Desktop.
dnsmasq.conf
#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