From 86ae426adf993e223e1f75b798dafa5ff8f82a39 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 27 Apr 2023 20:34:54 -0400 Subject: [PATCH] made experimental changes to enable dns via tls on quad9 --- docker-compose.yml | 7 ++--- unbound/forward-records.conf | 60 ++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 unbound/forward-records.conf diff --git a/docker-compose.yml b/docker-compose.yml index 2cd614b..d76b80f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,11 +22,11 @@ services: environment: TZ: "America/New_York" WEBPASSWORD: "password" - DNS1: "172.20.0.7#5053" + DNS1: "172.20.0.7#53" DNS2: "no" volumes: - "$PWD/etc-pihole/:/etc/pihole/" - - "$PWD/etc-dnsmasq.d/:/etc/dnsmasq.d/" + #- "$PWD/etc-dnsmasq.d/:/etc/dnsmasq.d/" restart: always unbound: @@ -36,8 +36,7 @@ services: dns_net: ipv4_address: 172.20.0.7 volumes: - - "$PWD/unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf" - - "$PWD/unbound/resolv.conf:/etc/resolv.conf" + - "$PWD/unbound/forward-records.conf:/opt/unbound/etc/unbound/forward-records.conf" healthcheck: disable: true restart: always diff --git a/unbound/forward-records.conf b/unbound/forward-records.conf new file mode 100644 index 0000000..bbd49a2 --- /dev/null +++ b/unbound/forward-records.conf @@ -0,0 +1,60 @@ +forward-zone: + # Forward all queries (except those in cache and local zone) to + # upstream recursive servers + name: "." + # Queries to this forward zone use TLS + forward-tls-upstream: yes + + # https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers + + ## Cloudflare + #forward-addr: 1.1.1.1@853#cloudflare-dns.com + #forward-addr: 1.0.0.1@853#cloudflare-dns.com + #forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com + #forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com + + ## Cloudflare Malware + # forward-addr: 1.1.1.2@853#security.cloudflare-dns.com + # forward-addr: 1.0.0.2@853#security.cloudflare-dns.com + # forward-addr: 2606:4700:4700::1112@853#security.cloudflare-dns.com + # forward-addr: 2606:4700:4700::1002@853#security.cloudflare-dns.com + + ## Cloudflare Malware and Adult Content + # forward-addr: 1.1.1.3@853#family.cloudflare-dns.com + # forward-addr: 1.0.0.3@853#family.cloudflare-dns.com + # forward-addr: 2606:4700:4700::1113@853#family.cloudflare-dns.com + # forward-addr: 2606:4700:4700::1003@853#family.cloudflare-dns.com + + ## CleanBrowsing Security Filter + # forward-addr: 185.228.168.9@853#security-filter-dns.cleanbrowsing.org + # forward-addr: 185.228.169.9@853#security-filter-dns.cleanbrowsing.org + # forward-addr: 2a0d:2a00:1::2@853#security-filter-dns.cleanbrowsing.org + # forward-addr: 2a0d:2a00:2::2@853#security-filter-dns.cleanbrowsing.org + + ## CleanBrowsing Adult Filter + # forward-addr: 185.228.168.10@853#adult-filter-dns.cleanbrowsing.org + # forward-addr: 185.228.169.11@853#adult-filter-dns.cleanbrowsing.org + # forward-addr: 2a0d:2a00:1::1@853#adult-filter-dns.cleanbrowsing.org + # forward-addr: 2a0d:2a00:2::1@853#adult-filter-dns.cleanbrowsing.org + + ## CleanBrowsing Family Filter + # forward-addr: 185.228.168.168@853#family-filter-dns.cleanbrowsing.org + # forward-addr: 185.228.169.168@853#family-filter-dns.cleanbrowsing.org + # forward-addr: 2a0d:2a00:1::@853#family-filter-dns.cleanbrowsing.org + # forward-addr: 2a0d:2a00:2::@853#family-filter-dns.cleanbrowsing.org + + ## Quad9 + forward-addr: 9.9.9.9@853#dns.quad9.net + forward-addr: 149.112.112.112@853#dns.quad9.net + forward-addr: 2620:fe::fe@853#dns.quad9.net + forward-addr: 2620:fe::9@853#dns.quad9.net + + ## getdnsapi.net + # forward-addr: 185.49.141.37@853#getdnsapi.net + # forward-addr: 2a04:b900:0:100::37@853#getdnsapi.net + + ## Surfnet + # forward-addr: 145.100.185.15@853#dnsovertls.sinodun.com + # forward-addr: 145.100.185.16@853#dnsovertls1.sinodun.com + # forward-addr: 2001:610:1:40ba:145:100:185:15@853#dnsovertls.sinodun.com + # forward-addr: 2001:610:1:40ba:145:100:185:16@853#dnsovertls1.sinodun.com