···139139 will be accessible at <literal>/run/memcached/memcached.sock</literal>.
140140 </para>
141141 </listitem>
142142- <listitem>
143143- <para>
144144- The DNSCrypt proxy module has been removed, the upstream project
145145- is no longer maintained.
146146- </para>
147147- </listitem>
148142</itemizedlist>
149143150144</section>
···11+<chapter xmlns="http://docbook.org/ns/docbook"
22+ xmlns:xlink="http://www.w3.org/1999/xlink"
33+ xmlns:xi="http://www.w3.org/2001/XInclude"
44+ version="5.0"
55+ xml:id="sec-dnscrypt-proxy">
66+77+ <title>DNSCrypt client proxy</title>
88+99+ <para>
1010+ The DNSCrypt client proxy relays DNS queries to a DNSCrypt enabled
1111+ upstream resolver. The traffic between the client and the upstream
1212+ resolver is encrypted and authenticated, mitigating the risk of MITM
1313+ attacks, DNS poisoning attacks, and third-party snooping (assuming the
1414+ upstream is trustworthy).
1515+ </para>
1616+1717+ <sect1><title>Basic configuration</title>
1818+1919+ <para>
2020+ To enable the client proxy, set
2121+ <programlisting>
2222+ services.dnscrypt-proxy.enable = true;
2323+ </programlisting>
2424+ </para>
2525+2626+ <para>
2727+ Enabling the client proxy does not alter the system nameserver; to
2828+ relay local queries, prepend <literal>127.0.0.1</literal> to
2929+ <option>networking.nameservers</option>.
3030+ </para>
3131+3232+ </sect1>
3333+3434+ <sect1><title>As a forwarder for another DNS client</title>
3535+3636+ <para>
3737+ To run the DNSCrypt proxy client as a forwarder for another
3838+ DNS client, change the default proxy listening port to a
3939+ non-standard value and point the other client to it:
4040+ <programlisting>
4141+ services.dnscrypt-proxy.localPort = 43;
4242+ </programlisting>
4343+ </para>
4444+4545+ <sect2><title>dnsmasq</title>
4646+ <para>
4747+ <programlisting>
4848+ {
4949+ services.dnsmasq.enable = true;
5050+ services.dnsmasq.servers = [ "127.0.0.1#43" ];
5151+ }
5252+ </programlisting>
5353+ </para>
5454+ </sect2>
5555+5656+ <sect2><title>unbound</title>
5757+ <para>
5858+ <programlisting>
5959+ {
6060+ services.unbound.enable = true;
6161+ services.unbound.forwardAddresses = [ "127.0.0.1@43" ];
6262+ }
6363+ </programlisting>
6464+ </para>
6565+ </sect2>
6666+6767+ </sect1>
6868+6969+</chapter>