You are not logged in.

#1 2013-06-13 20:58:43

Hurricane
Member
Registered: 2012-10-18
Posts: 77

[SOLVED] Activating DNSCrypt on boot

I have DNSCrypt installed and successfully configured. But I still have to go through the process of activating it each time I turn on my computer.
Also, I have to edit /etc/resolv.conf every time to set my nameserver to localhost.

Is there anyway I can automate this process?

-EDIT-
I found the answer. In case anybody looks this up I'm posting it here.

In order to get DNSCrypt to encrypt the data you send to the DNS server, the traffic needs to be looped back to localhost before it's sent out. This
means that you need to edit /etc/resolv.conf to contain only one line:

nameserver 127.0.0.1

The problem is that dhcpcd will over-write that every time it starts (it's a daemon started by systemd). In order to prevent this, open up /etc/dhcpcd.conf
in your favorite text editor and add the following line to the end:

nohook resolv.conf

This should do the trick. There are other ways of doing this as well. The ArchWiki has a page about resolv.conf (which is where I took this from).

Last edited by Hurricane (2013-06-13 22:53:33)


Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

Board footer

Powered by FluxBB