Hello Manu
thanks so much for your clear explanation, it has helped me understand now what is going on.
I have in the past installed dnscrypt-proxy and tried to use it along with unbound. I think after your explanation that in the past I wrongly assumed they were not ‘playing together nicely’ when in fact they were.
I have seen and tried dnscrypt-proxy2 and got that working ok.
May I ask if you can help on the following questions :
-
Is there an answer to the question - which is better for security dnscrypt-proxy or dnscrypt under unbound ?
-
In the past I have seen comments from jedisct1 (Frank Denis) that it is not really advisable to mix running his programme dnscrypt-proxy and a VPN together. Is there an answer ?
thanks again
Peter
Hi Peter,
I think you are mixing up how DNScrypt in unbound work. By using:
interface: 0.0.0.0@443
interface: ::0@443
######DNSCRYPT############
dnscrypt:
dnscrypt-enable:yes
dnscrypt-port:443
dnscrypt-provider:[2.dnscrypt- cert.cryptostorm.is](http://2.dnscrypt-cert.cryptostorm.is/).
dnscrypt-secret-key:/usr/local/etc/unbound/1.key
dnscrypt-provider-cert:/usr/local/etc/unbound/1.cert
############################# ##
Unbound will create a DNSCrypt server that will listen on port 443. Its provider name will be 2.dnscrypt- cert.cryptostorm.is. and it will use cert/key /usr/ local/etc/unbound/1.{cert,key} .
I am under the impression that you think it will connect to 5.101.137.251 over DNSCrypt. this is the role of DNSCrypt proxy instead.
When you add:
forward-zone:
name: "."
forward-addr:5.101.137.251
to the config, unbound will forward request to 5.101.137.251 and will behave as a caching server. Because 5.101.137.251 also handles clear text DNS, this is working just fine and that IP is showing through the website you mentioned.
When you remove the forward-zone, unbound will behave as a recursive resolver and DNS queries will show up as coming from your DNS server to the outside world.
I think you are mis-understanding what role Unbound has in DNSCrypt setup. Essentially, the config you are providing is the one that cryptostorm.is would use if they were going to set up a DNSCrypt server (aside from the forward-zone bit).
TL;DR you want to install DNSCrypt proxy. The original author is working on a new version: https://github.com/jedisct1/dnscrypt-proxy .
Manu