mirror of
https://codeberg.org/h3xx/you-dont-need-pihole.git
synced 2024-08-14 20:27:01 +00:00
2a67e47cde
And all the other explanatory bits needed to push this out into a proper Open Source Project(TM).
48 lines
1.6 KiB
Text
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
|