Compare commits

...

3 Commits

Author SHA1 Message Date
Dan Church 934cdd7f03
Use '::' as for the IPv6 blocked address
See https://docs.pi-hole.net/ftldns/blockingmode/
2022-12-13 12:08:42 -06:00
Dan Church a8f0b510a3
Add suggested 'bogus-priv', 'domain-needed' options
Also alphabetize options.
2022-12-13 11:51:03 -06:00
Dan Church 663885a568
Add IPv6 address of Google's global DNS server
While "dig @8.8.8.8 example.com" gives AAAA records, this feels wrong;
we must move move toward using IPv6 only.
2022-12-13 11:28:17 -06:00
2 changed files with 15 additions and 7 deletions

View File

@ -11,21 +11,27 @@
# 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
# Never forward addresses in the non-routed address spaces.
bogus-priv
# In-memory cache size.
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
# for debugging.)
#log-queries
@ -44,5 +50,7 @@ no-resolv
# For non-blocked DNS queries, telephone the request thru Google's global DNS
# server.
server=2001:4860:4860::8888
server=2001:4860:4860::8844
server=8.8.8.8
server=8.8.4.4

View File

@ -69,7 +69,7 @@ sub read_stripped {
MAIN: {
my $out;
my $block_ip = '0.0.0.0 ::1';
my $block_ip = '0.0.0.0 ::';
my $workdir = $FindBin::RealBin;
unless (&GetOptions(