up
This commit is contained in:
1 parent
57e7047de7
commit
ab6c10c5f2
1 file changed
+47
@@ -0,0 +1,47 @@
|
|||||||
|
# encrypted dns
|
||||||
|
|
||||||
|
## install
|
||||||
|
|
||||||
|
```
|
||||||
|
apk add dnscrypt-proxy dnscrypt-proxy-openrc bind-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
# find a server name
|
||||||
|
https://dnscrypt.info/public-servers
|
||||||
|
https://dnscrypt.info/map/
|
||||||
|
|
||||||
|
```
|
||||||
|
cat > /etc/dnscrypt-proxy/dnscrypt-proxy.toml <<"EOF"
|
||||||
|
listen_addresses = ['127.0.0.1:5053'] # default is :53, which collides with Pi-hole
|
||||||
|
server_names = ['quad9-doh-ip4-port443-filter-pri', 'cloudflare']
|
||||||
|
|
||||||
|
[sources]
|
||||||
|
[sources.public-resolvers]
|
||||||
|
urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md',
|
||||||
|
'https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md',
|
||||||
|
'https://cdn.jsdelivr.net/gh/DNSCrypt/dnscrypt-resolvers@master/v3/public-resolvers.md']
|
||||||
|
cache_file = '/var/cache/dnscrypt-proxy/public-resolvers.md'
|
||||||
|
minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
|
||||||
|
refresh_delay = 73
|
||||||
|
prefix = ''
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
## service
|
||||||
|
```
|
||||||
|
rc-update add dnscrypt-proxy default
|
||||||
|
rc-service dnscrypt-proxy start
|
||||||
|
```
|
||||||
|
|
||||||
|
## testing and final setting
|
||||||
|
|
||||||
|
```
|
||||||
|
dig @127.0.0.1 -p 5053 example.com # needs bind-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
If above did not error, set pihole upstream to 5053
|
||||||
|
|
||||||
|
```
|
||||||
|
pihole-FTL --config dns.upstreams '["127.0.0.1#5053"]'
|
||||||
|
```
|
||||||
|
|
||||||
Reference in new issue
Block a user