commit 8e78598d214e18522f8044d14f0713df35cff154 Author: dave Date: Fri Feb 27 18:14:25 2015 -0800 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ed82f9d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM basessh +MAINTAINER Dave P + +# Bind setup script +COPY regen-bind-key /start.d/regen-bind-key + +# Supervisor script +COPY bind.conf /etc/supervisor/conf.d/bind.conf + +# Install software +RUN apt-get update ; \ + apt-get install -y bind9 dnsutils ; \ + rm /etc/bind/rndc.key ; \ + chmod +x /start.d/regen-bind-key + +# DNS port +EXPOSE 53/udp + diff --git a/bind.conf b/bind.conf new file mode 100644 index 0000000..86f1b4c --- /dev/null +++ b/bind.conf @@ -0,0 +1,4 @@ +[program:named] +command=/usr/sbin/named -u bind -f +autorestart=true + diff --git a/regen-bind-key b/regen-bind-key new file mode 100644 index 0000000..708f106 --- /dev/null +++ b/regen-bind-key @@ -0,0 +1,8 @@ +#!/bin/bash + +# reconfigure bind - regenerates secret keys +dpkg-reconfigure bind9 + +# Only run once +rm /start.d/regen-bind-key +