diff options
author | T3slider <t3slider@gmail.com> | 2014-10-05 23:38:01 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-11 00:13:58 +0700 |
commit | 1bbffca294904b2db7942a22b4b5c6fe6e7313fc (patch) | |
tree | f716f2ecc256984b0fab82c952fe1319b85cd208 /network/dnscrypt-proxy/README.Slackware | |
parent | 7d79d345593986b00d9d2d509b419d5a8b3254df (diff) |
network/dnscrypt-proxy: Updated for version 1.4.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/dnscrypt-proxy/README.Slackware')
-rw-r--r-- | network/dnscrypt-proxy/README.Slackware | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/network/dnscrypt-proxy/README.Slackware b/network/dnscrypt-proxy/README.Slackware new file mode 100644 index 000000000000..5fbdc4698639 --- /dev/null +++ b/network/dnscrypt-proxy/README.Slackware @@ -0,0 +1,56 @@ +A. Setup + +An init script and configuration file have been provided to run dnscrypt-proxy +as a daemon. To configure dnscrypt-proxy, edit /etc/default/dnscrypt-proxy with +the desired settings. By default dnscrypt-proxy will use an OpenDNS server and +will run on localhost (127.0.0.1), port 53. + +The configuration file is setup to use a dnscrypt user by default, and to +chroot into that user's home directory to maximize security. In order to use +the default configuration you should create a dnscrypt user and group with the +following commands: + + groupadd -g 293 dnscrypt + useradd -u 293 -g 293 -c "DNSCrypt" -d /run/dnscrypt -s /bin/false dnscrypt + +If you decide to use another user you should edit the CHROOTDIR and USER +options in /etc/default/dnscrypt-proxy (there are example settings provided for +the user 'nobody'). + +In order to send all DNS requests through dnscrypt-proxy, you will need to +update /etc/resolv.conf to point to localhost. If using dhcpcd, the easiest way +to set dnscrypt-proxy as the primary (but not exclusive) dns resolver is to +create file /etc/resolv.conf.head with the following line: + + nameserver 127.0.0.1 + +You may also have to add the following line to enable EDNS: + + options edns0 + +To start dnscrypt-proxy automatically at system start, add the following to +/etc/rc.d/rc.local: + + if [ -x /etc/rc.d/rc.dnscrypt-proxy ]; then + /etc/rc.d/rc.dnscrypt-proxy start + fi + +To properly stop dnscrypt-proxy on system shutdown, add the following to +/etc/rc.d/rc.local_shutdown: + + if [ -x /etc/rc.d/rc.dnscrypt-proxy ]; then + /etc/rc.d/rc.dnscrypt-proxy stop + fi + +B. DNS Cache + +dnscrypt-proxy is just a DNS resolver and does not cache DNS queries. In order +to minimize the number of external DNS lookups, you can also run a local +caching DNS server. A sample configuration for dnsmasq (included with +Slackware) is provided at /usr/doc/dnscrypt-proxy-@VERSION@/dnsmasq.conf. A +sample configuration for bind/named that also does local DNSSEC validation (if +supported by the upstream DNS server) is also provided at +/usr/doc/dnscrypt-proxy-@VERSION@/named.conf. Both configurations run on port +53, forwarding lookups to dnscrypt-proxy running on port 55. In order to use +these configurations you will need to change the port dnscrypt-proxy runs on in +/etc/default/dnscrypt-proxy. |