<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Matteo D on Medium]]></title>
        <description><![CDATA[Stories by Matteo D on Medium]]></description>
        <link>https://medium.com/@MatteoID?source=rss-a36dcdc73cbf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*plYj6P7Z4oQMiFdc9qg49w.jpeg</url>
            <title>Stories by Matteo D on Medium</title>
            <link>https://medium.com/@MatteoID?source=rss-a36dcdc73cbf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:30:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MatteoID/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DNS over HTTPS (DoH) in Linux Made Easy!]]></title>
            <link>https://medium.com/@MatteoID/dns-over-https-doh-in-linux-made-easy-171efa74dca0?source=rss-a36dcdc73cbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/171efa74dca0</guid>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Matteo D]]></dc:creator>
            <pubDate>Thu, 10 Nov 2022 20:55:49 GMT</pubDate>
            <atom:updated>2022-11-10T20:57:31.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*dNiukNR8AP2D6jga" /><figcaption>DNS &amp; Security</figcaption></figure><h3><strong>Introduction</strong></h3><p>Personally I’m someone who values my privacy, but not so paranoid I would fall for paying for a VPN for peace of mind while browsing. Because of this, I had become interested in DNS over HTTPS or DoH. DoH enables your device to handle DNS over an encrypted connection with a server of your choice. This has the benefit of possible speed increases, but most importantly allows you to browse the internet without having your traffic intercepted, manipulated, or tracked via DNS by your ISP.</p><p>This is all due to the nature of encryption. The man in the middle cannot see your traffic unless in possession of the key and if anything encrypted is altered, it will not decrypt correctly.</p><p>I know you might be thinking, “This all sounds good and dandy, but where are the people on YouTube to guide me?” and you would be right to think so. There are currently no in depth tutorials on what I am diving into today on YouTube. Fortunately there is documentation for every Linux distribution and the package (<a href="https://github.com/DNSCrypt/dnscrypt-proxy">dnscrypt-proxy</a>, credit to everyone working on the project on Github!) we will be installing.</p><h3>Getting Started</h3><p>Although there are many distributions out there, I will be doing a guided setup for Arch Linux. The link above includes instructions for plenty of other distributions and support for many architectures.</p><p>Previously I had attempted to setup DoH with coredns, but coredns is quite a hefty package coming in around 4gb the last I installed it. dnscrypt-proxy is much more lightweight and easy to configure in comparison.</p><p>For those who are new to Arch, it can be installed with the following command from the community repo.</p><pre>pacman -S dnscrypt-proxy</pre><p>Afterwards, there are two methods for configuration. I will be covering the upstream recommended method.</p><p>First, edit /etc/dnscrypt-proxy/dnscrypt-proxy.toml and edit the line server_names to include a list of desired servers from <a href="https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md">this link</a> in the following format:</p><pre>server_names = [‘adguard-dns’, ‘acsacsar-ams-ipv4’, ‘cloudflare’]</pre><p>It is always a good idea to leave more After this is done, ensure resolv.conf can be edited without it being overwritten. This can vary depending on your networking software, but for NetworkManager (default in most common Desktop Environments) it is as simple as adding the following to /etc/NetworkManager/conf.d/dns.conf</p><pre>[main]<br>dns=none</pre><p>Afterwards, edit /etc/resolv.conf to include the following</p><pre>nameserver ::1<br>nameserver 127.0.0.1<br>options edns0</pre><p>Then all that remains is to start the service with systemd via the following and despite a full reboot not being necessary (systemctl daemon-reload will suffice as well) it help to be safe and covers more bases. The service can be enabled with</p><pre>systemctl enable dnscrypt-proxy.service</pre><p>And after a reboot it should be working perfectly. Test your connection with <a href="http://1.1.1.1/help">1.1.1.1/help</a> (easy to remember) or <a href="http://dnsleaktest.com/">dnsleaktest.com</a> (thorough)</p><h3>Conclusion</h3><p>Following these steps DoH should be adding to your privacy as we speak in a system-wide proxy. Latencies and operations can be observed with the following command to help sort out which servers respond fastest. By default, the fastest will be selected.</p><pre>systemctl status dnscrypt-proxy.service</pre><p>That wraps up todays tutorial. I hope it is useful for those who were in my position this morning, without an easy guide to set up this free privacy feature on their Linux device. Thanks for reading and don’t forget to subscribe for more Linux tips and tricks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=171efa74dca0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>