I read this excellent article on implementing DoH (
https://bendews.com/posts/implement-dns-over-https/), and the part on the Raspberry Pi, and sucessfully implemented in on my RPi OpenVPN client server which acts as a Gateway on my home network.
The DoH setup works great and uses the CloudFlare Encrypted DNS service as tested using there command:
dig @127.0.0.1 -p 5053 google.com
Now I want to make it the default DNS service on my RPi OpenVPN Client so that any device using that RPi as its gateway will automatically use Encrypted DNS. So I made this change to the /etc/openvpn/client.conf file on the RPi:
dhcp-option DNS 127.0.0.1:5053
But it does not appear to be working.
If I run this nslookup command on my windows PC connected to the RPi Gateway, it still lists Google as the DNS server:
>nslookup all
Server: google-public-dns-a.google.com
Address: 8.8.8.8
*** google-public-dns-a.google.com can't find all: Non-existent domain
Any ideas what I could be doing wrong? Is there perhaps a 'push DNS' command coming from the OpenVPN server that is overriding this ?
Thanks for any and all help/suggestions/pointers!