Due to my ISP intercepting some DNS requests and return 'redirected' A records, I want to use dnscrypt-proxy on my computer (my workstation, actually, running Ubuntu 16.04)
What I have done is install dnscrypt-proxy and point it to one of the public dnscrypt servers available. Then I change the DNS Server settings in Network Manager to point to 127.0.2.1 (the default listening address of dnscrypt-proxy)
It works, but it seems that every single resolve of FQDN goes to the dnscrypt server, and no caching is being performed.
So, I want to cache DNS resolution done by dnscrypt. I know I can do this using unbound, but dnsmasq is already installed on my workstation, so I want to use that instead. However, I'm a bit confused with the interaction between dnsmasq & resolvconf & Network Manager.
That leads to My Questions:
How do I configure my system so DNS Resolution will be done by dnscrypt-proxy but cached by dnsmasq?