From a8195fbeb3437acbddf20dd06fef2ed130e9d17a Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Fri, 10 Jun 2016 12:51:41 -0300 Subject: [PATCH] Added option to enable the experimental API --- pdns/Dockerfile | 6 ++++-- pdns/start.sh | 16 ++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pdns/Dockerfile b/pdns/Dockerfile index 5043034..7cdfe03 100644 --- a/pdns/Dockerfile +++ b/pdns/Dockerfile @@ -1,10 +1,12 @@ FROM debian:jessie MAINTAINER Fabio Rauber -ENV DEBIAN_FRONTEND="noninteractive" +ENV DNSSEC="yes" \ + APIKEY="" RUN apt-get update && \ - apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \ + DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \ + rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* EXPOSE 53/udp 53/tcp diff --git a/pdns/start.sh b/pdns/start.sh index 169c3b9..34126e0 100644 --- a/pdns/start.sh +++ b/pdns/start.sh @@ -1,6 +1,6 @@ #!/bin/bash -mkdir -p /etc/powerdns +mkdir -p /etc/powerdns/pdns.d cat >/etc/powerdns/pdns.conf </etc/powerdns/pdns.d/api.conf <