mirror of
https://codeberg.org/h3xx/you-dont-need-pihole.git
synced 2024-08-14 20:27:01 +00:00
Compare commits
No commits in common. "934cdd7f035d257bc6fcf3b8ea1dc029604d167f" and "9b4ee564d65b66bdb245293812f1511bf2673663" have entirely different histories.
934cdd7f03
...
9b4ee564d6
2 changed files with 7 additions and 15 deletions
|
@ -11,27 +11,21 @@
|
||||||
# You may NOT use this software for commercial purposes.
|
# 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
|
# Add our block lists
|
||||||
addn-hosts=/etc/you-dont-need-pihole/local.list
|
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/custom.list
|
||||||
addn-hosts=/etc/you-dont-need-pihole/block.list
|
addn-hosts=/etc/you-dont-need-pihole/block.list
|
||||||
|
|
||||||
# Never forward addresses in the non-routed address spaces.
|
# Return answers to DNS queries from /etc/hosts.
|
||||||
bogus-priv
|
#localise-queries
|
||||||
|
|
||||||
# In-memory cache size.
|
# In-memory cache size.
|
||||||
cache-size=10000
|
cache-size=10000
|
||||||
|
|
||||||
# Never forward plain names (without a dot or domain part)
|
|
||||||
domain-needed
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Return answers to DNS queries from /etc/hosts.
|
|
||||||
#localise-queries
|
|
||||||
|
|
||||||
# Don't log queries - only startup/shutdown messages. (Un-comment this option
|
# Don't log queries - only startup/shutdown messages. (Un-comment this option
|
||||||
# for debugging.)
|
# for debugging.)
|
||||||
#log-queries
|
#log-queries
|
||||||
|
@ -50,7 +44,5 @@ no-resolv
|
||||||
|
|
||||||
# For non-blocked DNS queries, telephone the request thru Google's global DNS
|
# For non-blocked DNS queries, telephone the request thru Google's global DNS
|
||||||
# server.
|
# server.
|
||||||
server=2001:4860:4860::8888
|
|
||||||
server=2001:4860:4860::8844
|
|
||||||
server=8.8.8.8
|
server=8.8.8.8
|
||||||
server=8.8.4.4
|
server=8.8.4.4
|
||||||
|
|
|
@ -69,7 +69,7 @@ sub read_stripped {
|
||||||
|
|
||||||
MAIN: {
|
MAIN: {
|
||||||
my $out;
|
my $out;
|
||||||
my $block_ip = '0.0.0.0 ::';
|
my $block_ip = '0.0.0.0 ::1';
|
||||||
my $workdir = $FindBin::RealBin;
|
my $workdir = $FindBin::RealBin;
|
||||||
|
|
||||||
unless (&GetOptions(
|
unless (&GetOptions(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue