you-dont-need-pihole/dnsmasq.d/01-you-dont-need-pihole.conf
Dan Church 2a67e47cde
Add README, CONTRIBUTING, LICENSE
And all the other explanatory bits needed to push this out into a
proper Open Source Project(TM).
2022-11-11 16:59:14 -06:00

48 lines
1.6 KiB
Text

###############################################################################
# You Don't Need Pi-hole
# Network-wide DNS blocking without extra hardware.
#
# Project URL: https://codeberg.org/h3xx/you-dont-need-pihole
#
# License GPLv3: GNU GPL version 3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
# with Commons Clause 1.0 (https://commonsclause.com/).
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
# You may NOT use this software for commercial purposes.
###############################################################################
# Do not load /etc/hosts as a dataset for replies. (By default dnsmasq performs
# an implicit "addn-hosts=/etc/hosts"; this prevents it.)
no-hosts
# Add our block lists
addn-hosts=/etc/you-dont-need-pihole/local.list
addn-hosts=/etc/you-dont-need-pihole/custom.list
addn-hosts=/etc/you-dont-need-pihole/block.list
# Return answers to DNS queries from /etc/hosts.
#localise-queries
# In-memory cache size.
cache-size=10000
# Don't log queries - only startup/shutdown messages. (Un-comment this option
# for debugging.)
#log-queries
# Log to a file:
#log-facility=/var/log/you-dont-need-pihole.log
# Enable asynchronous logging and optionally set the limit on the number of
# lines which will be queued by dnsmasq when writing to the syslog is slow.
#log-async
# Give this TTL (in seconds) for DNS names on our block list.
local-ttl=600
# Do not forward DNS requests to `nameserver`s in /etc/resolv.conf.
no-resolv
# For non-blocked DNS queries, telephone the request thru Google's global DNS
# server.
server=8.8.8.8
server=8.8.4.4