about summary refs log tree commit diff stats
path: root/tools/dnsmasq.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dnsmasq.html')
-rw-r--r--tools/dnsmasq.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/dnsmasq.html b/tools/dnsmasq.html
new file mode 100644
index 0000000..e71796e
--- /dev/null
+++ b/tools/dnsmasq.html
@@ -0,0 +1,42 @@
+        <h2 id="dnscrypt">4.1. Dnscrypt</h2>
+
+        <pre>
+        $ prt-get depinst dnscrypt
+        </pre>
+
+        <p>Dnscrypt by default resolves to dnscrypt.eu-nl, file
+        /usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv
+        contains list of compatible serers. Sysdoc dnscrypt-proxy port
+        contains init script configured to use DNSCrypt.eu resolver and
+        run as nobody user. Basic usage example;</p>
+
+        <pre>
+        $ sudo  dnscrypt-proxy --daemonize --resolver-name=&lt;resolver name&gt;
+        </pre>
+
+        <h2 id="dnsmasq">4.2. Dnsmasq</h2>
+
+        <p>Edit <a href="../conf/etc/resolv.conf">resolv.conf</a>;</p>
+
+        <pre>
+        # Local dnsmasq server
+        nameserver 127.0.0.1
+    # OpenNIC Servers
+    # nameserver 192.71.249.83
+    # nameserver 5.135.183.146
+        </pre>
+
+        <p>Make sure daemons like dhcpd don't change it,
+        turn on immutable attribute;</p>
+
+        <pre>
+        $chattr +i resolv.conf
+        </pre>
+
+        <p>Dnsmasq provides dns caching and dhcpd, example configuration
+        files:
+        <a href="../conf/etc/dnsmasq.conf">dnsmasq.conf</a> (change interface),
+        <a href="../conf/etc/resolv.conf.dnsmasq">resolv.conf.dnsmasq</a> and
+        <a href="../conf/etc/hosts.dnsmasq">hosts.dnsmasq</a>.</p>
+
+