LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2018, 03:12 PM   #1
Nonetas
LQ Newbie
 
Registered: Jan 2018
Posts: 8

Rep: Reputation: Disabled
How to Get DNS Crypt Working


Getting DNS Crypt Working

I have tried downloading and enabling DNS Crypt. The config file, contrary to the notes on the offical website, is to be found in /etc/default, and is specified in the paths directions in /etc/init.d/dnscrypt-proxy. The config has a resolver specified, as well as IPv6 block and cache entries.

DNSCRYPT_PROXY_LOCAL_ADDRESS=127.0.2.1:53
DNS_PROXY_RESOLVER_NAME=dnscrypt.eu-nl
BlockIPv6 yes
LocalCache on
DNSCRYPT_PROXY_OPTIONS=""

Despite these fulfilling the requirements according to the official website, any attempt to run DNS Crypt with "sudo dnscrypt-proxy /etc/default/dnscrypt-proxy.conf" (I added the '.conf' to the file and path specification, just to be sure) will fail with readout claiming no resolver set.

Running DNS Crypt using systemctl (sudo systemctl start dnscrypt-proxy), on the other hand, and then viewing the output of "journalctl -xe" and "lsof -i -n", show that the resolver successfully downloads the certificate and key. But running hostip -r 127.0.0.1 example.com, as recommended, results in a time out, showing that DNS Crypt is failing to resolve hostnames.

What am I missing out? There is no mention of how all this relates to resolv.conf or secondary nameserver lists it may specify, dnsmasq.conf or Network Manager.
 
Old 01-17-2018, 01:51 PM   #2
geppy
LQ Newbie
 
Registered: Dec 2017
Posts: 15

Rep: Reputation: Disabled
I think connections to do DNS resolving originates from root user since dnscrypr-proxy uses raw connections.
Connections to download certificates from regular user.

+ allow loopback for any udp connections is easiest option

+ do not download from download.dnscrypt.org, install using apt-get or dnf.

use 127.0.2.1 in resolv.conf(if you know how to modify it to keep changes across reboots) and set 127.0.2.1 as DNS in NetworkManager GUI

Last edited by geppy; 01-17-2018 at 02:00 PM.
 
Old 01-21-2018, 07:36 AM   #3
Nonetas
LQ Newbie
 
Registered: Jan 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
The dnscrypt is apt package, yes. I avoid anything that requires GUI settings, I use configs instead: I suppose the NM alterations would go in NetworkManager.conf, but I would need the correct entries.
If a special entry is needed in resolv.conf, does this mean DNSCrypt cannot (and should not) be used with proxies like Tor (that demands local host set in resolv.conf)?
 
Old 01-21-2018, 12:56 PM   #4
geppy
LQ Newbie
 
Registered: Dec 2017
Posts: 15

Rep: Reputation: Disabled
Dont use TOR Browser. (at least disable scripts in about:config)

Use payed ipsec with strongswan or cryptostorm. They both have in-house defences against quantum insert and tls handshake decryption if asked politely.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting DNS Crypt Working Nonetas Linux - Networking 0 01-13-2018 07:48 PM
LXer: DNSCrypt, crypt your DNS request on Linux LXer Syndicated Linux News 0 07-10-2012 03:21 AM
BIND - reverse dns queries only working locally, forward dns works fine. SloS13 Linux - Networking 3 08-25-2011 12:46 PM
DNS problems, reverse dns working localy but not on other servers. valls Linux - Newbie 1 06-16-2008 06:59 AM
Crypt in PHP and RH8 not working correctly. sschueller Linux - Software 0 03-06-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration