DNS-over-HTTPS
This commit is contained in:
parent
cf1c624931
commit
bf03e21a61
|
@ -9,6 +9,8 @@
|
||||||
* DNS resolver: [unbound](https://nlnetlabs.nl/projects/unbound/about/) ([config](unbound.conf))
|
* DNS resolver: [unbound](https://nlnetlabs.nl/projects/unbound/about/) ([config](unbound.conf))
|
||||||
* DNS-over-TLS: [haproxy](https://www.haproxy.org/) ([config](haproxy.cfg))
|
* DNS-over-TLS: [haproxy](https://www.haproxy.org/) ([config](haproxy.cfg))
|
||||||
|
|
||||||
### [Adblock](adblock/)
|
### Adblocking DNS resolver
|
||||||
|
|
||||||
Powered by [Pi-hole](https://pi-hole.net/).
|
Powered by [Pi-hole](https://pi-hole.net/).
|
||||||
|
|
||||||
|
* [Configuration](adblock/) (Docker-deployed)
|
||||||
|
|
|
@ -28,3 +28,13 @@ services:
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- 198.251.90.114
|
- 198.251.90.114
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
doh:
|
||||||
|
environment:
|
||||||
|
- "UPSTREAM_NAME=pihole"
|
||||||
|
restart: always
|
||||||
|
image: quay.io/sheogorath/doh
|
||||||
|
# build:
|
||||||
|
# context: .
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8054:8053"
|
||||||
|
|
||||||
|
|
17
haproxy.cfg
17
haproxy.cfg
|
@ -83,6 +83,12 @@ frontend 443-in
|
||||||
|
|
||||||
use_backend check if { path /check }
|
use_backend check if { path /check }
|
||||||
|
|
||||||
|
use_backend doh-uncensored if { hdr(host) -i uncensored.any.dns.nixnet.xyz }
|
||||||
|
use_backend doh-adblock if { hdr(host) -i adblock.any.dns.nixnet.xyz }
|
||||||
|
|
||||||
|
use_backend doh-uncensored if { hdr(host) -i uncensored.lux1.dns.nixnet.xyz }
|
||||||
|
use_backend doh-adblock if { hdr(host) -i adblock.lux1.dns.nixnet.xyz }
|
||||||
|
|
||||||
# default_backend nginx
|
# default_backend nginx
|
||||||
|
|
||||||
backend check
|
backend check
|
||||||
|
@ -119,3 +125,14 @@ backend dns-uncensored
|
||||||
backend dns-adblock
|
backend dns-adblock
|
||||||
mode tcp
|
mode tcp
|
||||||
server pihole 198.251.90.89:53 check
|
server pihole 198.251.90.89:53 check
|
||||||
|
|
||||||
|
# DoH backends
|
||||||
|
backend doh-uncensored
|
||||||
|
mode http
|
||||||
|
server doh-uncensored 127.0.0.1:8053 check
|
||||||
|
|
||||||
|
backend doh-adblock
|
||||||
|
mode http
|
||||||
|
server doh-adblock 127.0.0.1:8054 check
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue