Commit a33ca963 authored by kaiyou's avatar kaiyou
Browse files

Install and run pdns-server

parent 9dc8727a
FROM debian:jessie
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y pdns-server pdns-backend-mysql \
&& apt-get clean
ADD ./start.sh /start.sh
ENV PDNS_MYSQL_HOST=db
ENV PDNS_MYSQL_DB=
ENV PDNS_MYSQL_USER=
ENV PDNS_MYSQL_PASSWORD=
ENV PDNS_AXFR=127.0.0.1
EXPOSE 53
EXPOSE 53/udp
CMD ./start.sh
#!/bin/bash
pdns_server \
--daemon=no \
--master=yes \
--slave=yes \
--webserver=yes \
--disable-axfr=no \
--allow-axfr-ips=${PDNS_AXFR} \
--gmysql-host=db \
--gmysql-dbname=${PDNS_MYSQL_DB} \
--gmysql-user=${PDNS_MYSQL_USER} \
--gmysql-password=${PDNS_MYSQL_PASSWORD}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment