1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

switch dnsmasq to pdnsd

This commit is contained in:
kev 2015-03-02 22:42:11 +08:00
parent 867366bee2
commit 0ce20ab395
3 changed files with 41 additions and 4 deletions

View File

@ -6,11 +6,11 @@ FROM ubuntu:14.04
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update
RUN apt-get install -y build-essential supervisor dnsmasq
RUN apt-get install -y build-essential supervisor pdnsd
RUN apt-get clean
ADD ./services.conf /etc/supervisor/conf.d/
ADD ./dnsmasq.conf /etc/
ADD ./pdnsd.conf /etc/
ADD https://download.libsodium.org/libsodium/releases/libsodium-1.0.2.tar.gz /tmp/pkgs/
ADD http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.3.tar.gz /tmp/pkgs/

37
dnscrypt/pdnsd.conf Normal file
View File

@ -0,0 +1,37 @@
global {
perm_cache=16384;
cache_dir="/var/cache/pdnsd";
run_as="pdnsd";
server_ip = 127.0.0.1;
status_ctl = on;
query_method=udp_tcp;
min_ttl=15m; # Retain cached entries at least 15 minutes.
max_ttl=1w; # One week.
timeout=10; # Global timeout option (10 seconds).
neg_domain_pol=on;
udpbufsize=1024; # Upper limit on the size of UDP messages.
}
server {
label = "dnscrypt-proxy";
ip = 127.0.0.1;
port = 2053;
timeout = 4;
uptest = query;
interval = 15m;
proxy_only=on;
}
source {
owner=localhost;
file="/etc/hosts";
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}

View File

@ -2,6 +2,6 @@
priority = 100
command = dnscrypt-proxy -a 127.0.0.1:2053 -R opendns
[program:dnsmasq]
[program:pdnsd]
priority = 200
command = dnsmasq -d -C /etc/dnsmasq.conf
command = pdnsd -c /etc/pdnsd.conf