Browse Source

Updated PowerDNS to Debian Stretch and version 4.1.3

pull/4/head 4.1.3
Fábio Kaiser Rauber 7 years ago
parent
commit
99ece2ffa0
  1. 5
      pdns/Dockerfile
  2. 2
      pdns/pdns.list
  3. 6
      pdns/secallzones.sh
  4. 6
      pdns/start.sh

5
pdns/Dockerfile

@ -1,4 +1,5 @@
FROM debian:jessie FROM debian:stretch-slim
MAINTAINER Fabio Rauber <fabiorauber@gmail.com> MAINTAINER Fabio Rauber <fabiorauber@gmail.com>
ENV PDNSCONF_LAUNCH="gmysql" \ ENV PDNSCONF_LAUNCH="gmysql" \
@ -14,7 +15,7 @@ ENV PDNSCONF_LAUNCH="gmysql" \
ADD pdns.list /etc/apt/sources.list.d/pdns.list ADD pdns.list /etc/apt/sources.list.d/pdns.list
ADD pdns.preference /etc/apt/preferences.d/pdns ADD pdns.preference /etc/apt/preferences.d/pdns
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl && \ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl gnupg && \
curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add - && apt-get update curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add - && apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \ RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \

2
pdns/pdns.list

@ -1 +1 @@
deb http://repo.powerdns.com/debian jessie-auth-40 main deb [arch=amd64] http://repo.powerdns.com/debian stretch-auth-41 main

6
pdns/secallzones.sh

@ -21,4 +21,10 @@ while read -r d; do
fi fi
done <<< "$ZONES" done <<< "$ZONES"
echo -n "[`date +"%T"`] Rectifying all zones..."
pdnsutil rectify-all-zones &> /dev/null && echo " OK."
echo "[`date +"%T"`] Secallzones finished." echo "[`date +"%T"`] Secallzones finished."

6
pdns/start.sh

@ -19,11 +19,7 @@ fi
for var in $PDNSVARS; do for var in $PDNSVARS; do
varname=`echo ${var#"PDNSCONF_"} | awk '{print tolower($0)}' | sed 's/_/-/g'` varname=`echo ${var#"PDNSCONF_"} | awk '{print tolower($0)}' | sed 's/_/-/g'`
value=`echo ${!var} | sed 's/^$\(.*\)/\1/'` value=`echo ${!var} | sed 's/^$\(.*\)/\1/'`
if [ ! -z ${!value} ]; then echo "$varname=$value" >> /etc/powerdns/pdns.conf
echo "$varname=${!value}" >> /etc/powerdns/pdns.conf
else
echo "$varname=$value" >> /etc/powerdns/pdns.conf
fi
done done
if [ ! -z $PDNSCONF_API_KEY ]; then if [ ! -z $PDNSCONF_API_KEY ]; then

Loading…
Cancel
Save