2015-12-03 04:29:26 -05:00
|
|
|
# If you want dnsmasq to read another file, as well as /etc/hosts, use
|
|
|
|
# this.
|
2015-07-30 12:24:24 -04:00
|
|
|
addn-hosts=/etc/pihole/gravity.list
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# The following two options make you a better netizen, since they
|
|
|
|
# tell dnsmasq to filter out queries which the public DNS cannot
|
|
|
|
# answer, and which load the servers (especially the root servers)
|
|
|
|
# unnecessarily. If you have a dial-on-demand link they also stop
|
|
|
|
# these requests from bringing up the link unnecessarily.
|
|
|
|
|
|
|
|
# Never forward plain names (without a dot or domain part)
|
2015-06-07 00:29:13 -04:00
|
|
|
domain-needed
|
2015-12-03 04:29:26 -05:00
|
|
|
# Never forward addresses in the non-routed address spaces.
|
2015-06-07 00:29:13 -04:00
|
|
|
bogus-priv
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# If you don't want dnsmasq to read /etc/resolv.conf or any other
|
|
|
|
# file, getting its servers from this file instead (see below), then
|
|
|
|
# uncomment this.
|
2015-06-07 00:29:13 -04:00
|
|
|
no-resolv
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# Add other name servers here, with domain specs if they are for
|
|
|
|
# non-public domains.
|
2015-06-07 00:29:13 -04:00
|
|
|
server=8.8.8.8
|
|
|
|
server=8.8.4.4
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# If you want dnsmasq to listen for DHCP and DNS requests only on
|
|
|
|
# specified interfaces (and the loopback) give the name of the
|
|
|
|
# interface (eg eth0) here.
|
2015-06-07 00:29:13 -04:00
|
|
|
interface=eth0
|
2015-12-03 04:29:26 -05:00
|
|
|
# Or which to listen on by address (remember to include 127.0.0.1 if
|
|
|
|
# you use this.)
|
2015-06-07 00:29:13 -04:00
|
|
|
listen-address=127.0.0.1
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# Set the cachesize here.
|
2015-06-07 00:29:13 -04:00
|
|
|
cache-size=10000
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# For debugging purposes, log each DNS query as it passes through
|
|
|
|
# dnsmasq.
|
2015-06-19 17:10:48 -04:00
|
|
|
log-queries
|
2015-07-29 07:20:39 -04:00
|
|
|
log-facility=/var/log/pihole.log
|
2015-12-03 04:29:26 -05:00
|
|
|
|
|
|
|
# Normally responses which come from /etc/hosts and the DHCP lease
|
|
|
|
# file have Time-To-Live set as zero, which conventionally means
|
|
|
|
# do not cache further. If you are happy to trade lower load on the
|
|
|
|
# server for potentially stale date, you can set a time-to-live (in
|
|
|
|
# seconds) here.
|
2015-06-19 17:10:48 -04:00
|
|
|
local-ttl=300
|