@ -11,7 +11,11 @@ RUN \
|
|||||||
apk upgrade --no-cache; \
|
apk upgrade --no-cache; \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
bind==${VERSION_BIND} \
|
bind==${VERSION_BIND} \
|
||||||
supervisor;
|
supervisor; \
|
||||||
|
rm -f \
|
||||||
|
/etc/bind/named.conf.authoritative \
|
||||||
|
/etc/bind/named.conf.recursive \
|
||||||
|
/etc/bind/rndc.key;
|
||||||
|
|
||||||
|
|
||||||
EXPOSE \
|
EXPOSE \
|
||||||
@ -33,3 +37,4 @@ RUN \
|
|||||||
|
|
||||||
|
|
||||||
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]
|
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]
|
||||||
|
# CMD ["named", "-c", "/etc/bind/named.conf", "-g", "-u", "named"]
|
||||||
|
@ -6,9 +6,7 @@ options {
|
|||||||
listen-on { 127.0.0.1; };
|
listen-on { 127.0.0.1; };
|
||||||
listen-on-v6 { none; };
|
listen-on-v6 { none; };
|
||||||
|
|
||||||
allow-transfer {
|
allow-transfer { none; };
|
||||||
none;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
pid-file "/var/run/named/named.pid";
|
pid-file "/var/run/named/named.pid";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[program:bind]
|
[program:bind]
|
||||||
startsecs=0
|
startsecs=0
|
||||||
stopwaitsecs=55
|
stopwaitsecs=55
|
||||||
command=/usr/sbin/named -f
|
command=/usr/sbin/named -4 -f -c /etc/bind/named.conf -L /var/log/named.log
|
||||||
autorestart=true
|
autorestart=true
|
||||||
autostart=true
|
autostart=true
|
||||||
stdout_logfile=/var/log/supervisor_%(program_name)s.log
|
stdout_logfile=/var/log/supervisor_%(program_name)s.log
|
||||||
|
Reference in New Issue
Block a user