diff --git a/chinadns/Dockerfile b/chinadns/Dockerfile index 7cecfaa..6897314 100644 --- a/chinadns/Dockerfile +++ b/chinadns/Dockerfile @@ -8,25 +8,22 @@ MAINTAINER kev ENV DEBIAN_FRONTEND noninteractive ENV DNS_VER 1.3.1 ENV DNS_URL https://github.com/clowwindy/ChinaDNS/releases/download/${DNS_VER}/chinadns-${DNS_VER}.tar.gz -ENV DNS_DIR /tmp/chinadns ENV DNS_FILE chinadns.tar.gz ENV DNS_MD5 9e2aca1a265aec7ca87f4d0377d9fa74 RUN apt-get update \ && apt-get install -y build-essential curl dnsmasq supervisor \ - && mkdir -p ${DNS_DIR} \ - && cd ${DNS_DIR} \ + && mkdir -p chinadns \ + && cd chinadns \ && curl -sSL ${DNS_URL} -o ${DNS_FILE} \ && echo "${DNS_MD5} ${DNS_FILE}" | md5sum -c \ && tar xzf ${DNS_FILE} --strip 1 \ && ./configure \ - && make \ && make install \ && cd .. \ - && rm -rf ${DNS_DIR} \ + && rm -rf chinadns \ && apt-get remove -y build-essential \ && apt-get autoremove -y \ - && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* RUN curl http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest \ diff --git a/chinadns/services.conf b/chinadns/services.conf index 0c6956f..6e824c6 100644 --- a/chinadns/services.conf +++ b/chinadns/services.conf @@ -1,6 +1,11 @@ [program:chinadns] priority = 100 -command = chinadns -m -c /etc/chnroute.txt -p 2053 +command = chinadns -b 127.0.0.1 + -c /etc/chnroute.txt + -m + -p 2053 + -s 114.114.114.114,208.67.222.222:443,8.8.8.8 + -y 0.3 [program:dnsmasq] priority = 200