Initial commit
This commit is contained in:
commit
8e78598d21
|
@ -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
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[program:named]
|
||||
command=/usr/sbin/named -u bind -f
|
||||
autorestart=true
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# reconfigure bind - regenerates secret keys
|
||||
dpkg-reconfigure bind9
|
||||
|
||||
# Only run once
|
||||
rm /start.d/regen-bind-key
|
||||
|
Loading…
Reference in New Issue