Created
August 12, 2018 06:01
-
-
Save dfang/df3a39931bfbbc0009650d27bfde6a10 to your computer and use it in GitHub Desktop.
example /usr/local/etc/dnsmasq.conf
This file contains hidden or 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
# | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://serverfault.com/questions/706516/how-long-does-dnsmasq-cache-dns