Install DNSCrypt Proxy on Arch Linux

ArchLinux Wi-Fi

Yesterday I posted an entry showing how to install in Ubuntu the program DNSCrypt Proxy allowing encrypt DNS traffic to navigate with greater security against possible attacks. Considering that in the comments they have talked about how to install it in Arch Linux and it did not seem appropriate to explain it in the same entry, I decided to do it in a separate article.

This time, as good archers, we are going to pull a pure console, and we will find out how it is like this as much or faster and easier than in Ubuntu,

Installation

En Arch we have the advantage that DNSCrypt Proxy is in the official repositories, so to install it just use Pacman:

# pacman -S dnscrypt-proxy

We enable the service:

# systemctl enable dnscrypt-proxy

And we start it:

# systemctl start dnscrypt-proxy

Now we are going to make a backup of the file with the current DNS:

# cp /etc/resolv.conf /etc/resolv.conf.backup

And replace its content so that it uses localhost as a nameserver:

# sh -c "echo 'nameserver 127.0.0.1' > /etc/resolv.conf"

We protect it to prevent it from being modified with each restart:

# chattr +i /etc/resolv.conf

And it only remains to restart the network manager. In case of using Network Manager we do this:

# systemctl restart NetworkManager

And it's over, that's it DNSCrypt Proxy properly installed and configured. To check it we can click here and see if the welcome message from OpenDNS.

These steps apply to a basic installation of DNSCrypt Proxy in a Arch Linux simple with Network Manager, but since I know that surely you have all kinds of strange configurations in your systems or you are interested in exploiting the possibilities of this program more, I invite you to consult the article on DNSCrypt on the wiki Arch Linux.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   KZKG ^ Gaara said

    I'm going to think that the NSA is after you ... that you're passing information to Snowden or something similar LOL!

    1.    Manual of the Source said

      I'm passing you all the information I have about those sepsis activities with virtual animals that you dedicate yourself to, jojojojojo.

  2.   illukki said

    Thanks che! And if instead of NetworkManager I use Wicd, I only make that change when restarting the manager?
    Greetings.

    1.    Manual of the Source said

      That's right, it would only be to change the last command for this:

      # systemctl restart wicd

  3.   static said

    Hehe excellent tip, could you help me with the advantages I have when using OpenDNS

    regards

    1.    Manual of the Source said

      In Wikipedia they have a very complete explanation: http://es.wikipedia.org/wiki/OpenDNS

  4.   powerarch said

    I have Tor configured and it works perfect. Configure DNSCrypt Proxy and it works perfect, but without the Tor service, that is without Tor proxy. Question can both services be used at the same time.

    Greetings ..

    1.    Manual of the Source said

      I think I read that you could change the ports DNSCrypt uses, I don't know exactly how.

  5.   Chaparral said

    It has worked perfectly well for me in Antergos.

    Thanks friend and greetings.

  6.   Juanse said

    Thanks, it works fine.

  7.   mat1986 said

    Installed and working in Manjaro. Thanks 😀

  8.   dtulf said

    I just installed it. I hope to notice differences and that it complies with what it says on the wiki heh
    Is there how to have a different IP by installing something similar and not, for example, an addon like Anonymux or others?
    Incidentally. In Firefox, with Anonymox turned on, it tells me that it is not installed but if I deactivate it, it does mark me that opendns is active.

  9.   obadiahriver said

    Hello A few days ago I installed Dnsmasq and when I went to the web what to put to check if opendns is active it tells me yes, even so I have to install dnscrypt or do I leave it as is?

  10.   Jesus said

    A noob question and if I want to remove check out the file "resolv.conf" what command do I use?

    1.    zjaume said

      with chattr -i /etc/resolv.conf you remove protection

  11.   zjaume said

    I have configured everything and when I open the OpenDNS page it tells me that I am not using it, the service is running and it solves the other webs without problem, and I have put the nameserver 127.0.0.1 in resolv.conf, any ideas?

    1.    zjaume said

      Correction, it already works ^^ thank you very much for the tutorial

  12.   ice said

    How do I know if it is working since the opendns website tells me that it does not work, but I followed the steps to the letter. I also read this:

    It will never show on the OpenDNS page that we are using the service, because dnscrypt by default uses dnscrypt.eu-nl to resolve names, it no longer uses OpenDNS by default, to use OpenDNS you have to edit the dnscrypt-proxy.service

    Any idea?