Skip to content

Instantly share code, notes, and snippets.

@dfang
Created August 12, 2018 06:01
Show Gist options
  • Save dfang/df3a39931bfbbc0009650d27bfde6a10 to your computer and use it in GitHub Desktop.
Save dfang/df3a39931bfbbc0009650d27bfde6a10 to your computer and use it in GitHub Desktop.
example /usr/local/etc/dnsmasq.conf
#
# Basic server configuration
#
listen-address=127.0.0.1
port=53
bind-interfaces
cache-size=1000
#
# Logging
#
# Debug only
# log-facility=/usr/local/var/log/dnsmasq.log
# log-queries
#
# Name resolution options
#
# By default, dnsmasq will send queries to any of the upstream servers
strict-order
# get upstream servers from somewhere other that /etc/resolv.conf
resolv-file=/usr/local/etc/resolv.dnsmasq.conf
# don't read /etc/resolv.conf or any other file, getting its servers from this file instead
#no-resolv
# don't poll /etc/resolv.conf or other resolv files for changes and re-read them
#no-poll
# force dnsmasq to send queries to all servers
#all-servers
# don't read /etc/hosts
#no-hosts
# Include all files in a directory which end in .conf
conf-dir=/usr/local/etc/dnsmasq.d/,*.conf
@dfang
Copy link
Author

dfang commented Aug 12, 2018

@dfang
Copy link
Author

dfang commented Aug 12, 2018

@dfang
Copy link
Author

dfang commented Aug 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment