you'll find some instructions in this old article, showing how to run unbound, dnscrypt-proxy and stubby all on the same system.
partial content of my current unbound.conf
:
server:
logfile: /unbound.log
log-time-ascii: yes
verbosity: 1
interface: 127.10.10.2@5552
do-ip4: yes
do-udp: yes
do-tcp: yes
partial content of /opt/dnscrypt-proxy/dnscrypt-proxy.toml
:
server_names = ['scaleway-fr', 'de.dnsmaschine.net', 'dnscrypt.me']
listen_addresses = ['127.10.10.4:5554']
ipv4_servers = true
dnscrypt_servers = true
doh_servers = true
require_dnssec = true
require_nolog = true
require_nofilter = true
output from sudo netstat -tulpen | grep 555
(list both port 5554 and port 5552)
pi@raspberrypi:~ $ sudo netstat -tulpen | grep 555
tcp 0 0 127.10.10.2:5552 0.0.0.0:* LISTEN 0 13515 802/unbound
tcp 0 0 127.10.10.4:5554 0.0.0.0:* LISTEN 0 12460 276/dnscrypt-proxy
udp 0 0 127.10.10.2:5552 0.0.0.0:* 0 13514 802/unbound
udp 0 0 127.10.10.4:5554 0.0.0.0:* 0 12459 276/dnscrypt-proxy
edit
partial content of /etc/dnsmasq.d/01-pihole.conf
:
# dnscrypt-proxy v2
server=127.10.10.4#5554
# unbound
server=127.10.10.2#5552
/edit