1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-23 07:18:07 +00:00
pi-hole/advanced/01-pihole.conf

62 lines
2.2 KiB
Plaintext
Raw Normal View History

2016-01-30 20:12:40 +00:00
# Pi-hole: A black hole for Internet advertisements
# (c) 2015, 2016 by Jacob Salmela
# Network-wide ad blocking via your Raspberry Pi
# http://pi-hole.net
# dnsmasq config for Pi-hole
#
# Pi-hole is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2015-12-03 09:29:26 +00:00
# If you want dnsmasq to read another file, as well as /etc/hosts, use
# this.
addn-hosts=/etc/pihole/gravity.list
2015-12-03 09:29:26 +00: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)
domain-needed
2015-12-03 09:29:26 +00:00
# Never forward addresses in the non-routed address spaces.
bogus-priv
2015-12-03 09:29:26 +00: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.
no-resolv
2015-12-03 09:29:26 +00:00
2015-12-05 20:04:37 +00:00
# Add other name servers here, with domain specs if they are for
2015-12-03 09:29:26 +00:00
# non-public domains.
server=@DNS1@
server=@DNS2@
2015-12-03 09:29:26 +00: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-12-05 20:04:37 +00:00
interface=@INT@
2015-12-03 09:29:26 +00:00
# Or which to listen on by address (remember to include 127.0.0.1 if
# you use this.)
listen-address=127.0.0.1
2015-12-03 09:29:26 +00:00
# Set the cachesize here.
cache-size=10000
2015-12-03 09:29:26 +00:00
# For debugging purposes, log each DNS query as it passes through
# dnsmasq.
log-queries
2015-07-29 11:20:39 +00:00
log-facility=/var/log/pihole.log
2015-12-03 09:29:26 +00: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.
local-ttl=300
# This allows it to continue functioning without being blocked by syslog, and allows syslog to use dnsmasq for DNS queries without risking deadlock
log-async