Cleanup of directory for zones back to /var/cache/bind. Also stable release tag
This commit is contained in:
@@ -13,7 +13,7 @@ RUN apk --update upgrade && apk add bind
|
||||
# &
|
||||
# Get latest bind.keys
|
||||
RUN mkdir -m 0770 -p /etc/bind && chown -R root:named /etc/bind ; \
|
||||
mkdir -m 0770 -p /var/bind && chown -R root:named /var/cache ; \
|
||||
mkdir -m 0770 -p /var/cache/bind && chown -R root:named /var/cache/bind ; \
|
||||
wget -q -O /etc/bind/bind.keys https://ftp.isc.org/isc/bind9/keys/9.11/bind.keys.v9_11 ; \
|
||||
rndc-confgen -a -r /dev/urandom
|
||||
|
||||
@@ -24,7 +24,7 @@ COPY configs/. /etc/bind/
|
||||
# "if any build steps change the data within the volume
|
||||
# after it has been declared, those changes will be discarded."
|
||||
VOLUME ["/etc/bind"]
|
||||
VOLUME ["/var/bind"]
|
||||
VOLUME ["/var/cache/bind"]
|
||||
|
||||
COPY entrypoint.sh /
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -22,7 +22,7 @@ include "/etc/bind/named.conf.rfc1918";
|
||||
# example reverse zone: 1.2.3.4/24
|
||||
//zone "4.3.2.1.in-addr.arpa" {
|
||||
// type master;
|
||||
// file "/var/bind/1.2.3.4.rev";
|
||||
// file "/var/cache/bind/1.2.3.4.rev";
|
||||
// notify yes;
|
||||
//};
|
||||
|
||||
@@ -33,7 +33,7 @@ include "/etc/bind/named.conf.rfc1918";
|
||||
# example "forward" (domain) zone: domain.tld
|
||||
//zone "domain.tld" {
|
||||
// type master;
|
||||
// file "/var/bind/domain.tld";
|
||||
// file "/var/cache/bind/domain.tld";
|
||||
// notify yes;
|
||||
// #also-notify { a.b.c.d; };
|
||||
// #allow-transfer { localhost; a.b.c.d; };
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
options {
|
||||
directory "/var/bind";
|
||||
directory "/var/cache/bind";
|
||||
|
||||
// Remove (hide) our bind version - no reason to disclose it
|
||||
version "";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
chown -R root:named /etc/bind /var/bind /var/run/named
|
||||
chmod -R 770 /var/bind /var/run/named
|
||||
chown -R root:named /etc/bind /var/cache/bind /var/run/named
|
||||
chmod -R 770 /var/cache/bind /var/run/named
|
||||
chmod -R 750 /etc/bind
|
||||
# Run in foreground and log to STDERR (console):
|
||||
exec /usr/sbin/named -c /etc/bind/named.conf -g -u named
|
||||
|
||||
Reference in New Issue
Block a user