mapi68 / dnscrypt-proxy-pihole

Preconfigured deb package for every Raspberry Pi and Pi-hole to use only best DNSCrypt, DNS-over-HTTPS and No-Log servers
36 stars 2 forks source link

Setting up a specific DNS server #3

Closed inowe closed 2 years ago

inowe commented 2 years ago

Once installed, how can I configure dnscrypt to use a specific DNS server? I can see that the dnscrypt-proxy.toml file includes several lists of servers, but I would like to use only one of them.

mapi68 commented 2 years ago

ONLY CLOUDFLARE 1.1.1.1 SERVER

Simply add a line to /etc/dnscrypt-proxy/dnscrypt-proxy.toml in Global Settings. If you want to add cloudflare 1.1.1.1: sed -i "6 i server_names = ['cloudflare']" /etc/dnscrypt-proxy/dnscrypt-proxy.toml

Restart services: systemctl restart dnscrypt-proxy*

Check if it's all OK: tail /var/log/syslog; tail -f /var/log/dnscrypt-proxy/query.log

Public Resolvers List

Regards.

inowe commented 2 years ago

Solved, thank you for the help!