about summary refs log tree commit diff stats
path: root/tools/dnsmasq.html
blob: ce22d76ec1224fb36dfea4680d17d0c7f05cb770 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 <!DOCTYPE html>
<html dir="ltr" lang="en">
    <head>
        <meta charset='utf-8'>
        <title>Dnscrypt and Dnsmasq</title>
    </head>
    <body>

        <a href="index.html">Tools Index</a>

        <h1>Dnscrypt and Dnsmasq</h1>


        <h2 id="dnscrypt">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">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/hosts.dnsmasq">hosts.dnsmasq</a>.</p>

        <a href="index.html">Tools Index</a>

        <p>
        This is part of the c9-doc Manual.
        Copyright (C) 2016
        c9 team.
        See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p>
    </body>
</html>