This is a guide on how to set up dnscrypt-proxy on a Proxmox LXC with Pi-hole.
You should definitely familiarise yourself with what exactly happens here beforehand.
This is intended to help you set it up, but is not a general solution. (But a possible one)
Codeberg dnscrypt-proxy-config
pct enter 100
100
-> ID for Proxmox LXC with Pi-hole
Look at
dnscrypt-proxy
to see which release is the right one for you.
cd /opt
ls
wget https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.1.5/dnscrypt-proxy-linux_x86_64-2.1.5.tar.gz
tar xvf dnscrypt-proxy-linux_x86_64-2.1.5.tar.gz
rm *.gz
mv linux-x86_64/ dnscrypt-proxy
cd dnscrypt-proxy/
ls
wget https://codeberg.org/DecaTec/dnscrypt-proxy-config/raw/branch/master/dnscrypt-proxy.toml
./dnscrypt-proxy -service install
./dnscrypt-proxy -service start
systemctl status dnscrypt-proxy
nano *.toml
systemctl restart dnscrypt-proxy
In the *.toml
change the following flags:
dnscrypt_servers = false
doh_servers = false
Uncomment the following lines:
log_file = 'dnscrypt-proxy.log'
log_file_latest = true
-> Upstream DNS Servers
Custom 1 (IPv4): 127.0.0.1#65054
Custom 3 (IPv6): ::1#65054
The odoh-servers may not always be available. This can lead to malfunctions and trigger a warning. This should be monitored.
A warning may then appear in Pi-hole that too many retries have been made.
Just take a look at the logs and take action if necessary:
cat /opt/dnscrypt-proxy/dnscrypt-proxy.log
If it bothers you, set the following to true
:
doh_servers = true
If necessary, that too:
dnscrypt_servers = true