4 Commits
2 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -1,6 +1,6 @@
### ISC BIND9 Container (Stable: 9.11.3_xx) built on top of Alpine ### ISC BIND9 Container (Stable: 9.12.3_xx) built on top of Alpine
### Last update: 6-6-18 (major new update!) ### Last update: 1-15-19
### Latest Stable Docker Tag: 9.11.3-r0 ### Latest Stable Docker Tag: 9.12.3_r0
NOTE: "Last Update" is the date of the latest DockerHub build. NOTE: "Last Update" is the date of the latest DockerHub build.
@@ -76,3 +76,6 @@ docker run --name=dns-resolver
-v /DATA/var/cache/bind:/var/cache/bind \ -v /DATA/var/cache/bind:/var/cache/bind \
ventz/bind ventz/bind
``` ```
Additional options may be passed to the bind daemon via the `OPTIONS` argument, provided as:
`docker run --env OPTIONS='...'
+2 -1
View File
@@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
OPTIONS=$@
chown -R root:named /etc/bind /var/cache/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 770 /var/cache/bind /var/run/named
chmod -R 750 /etc/bind chmod -R 750 /etc/bind
# Run in foreground and log to STDERR (console): # Run in foreground and log to STDERR (console):
exec /usr/sbin/named -c /etc/bind/named.conf -g -u named exec /usr/sbin/named -c /etc/bind/named.conf -g -u named $OPTIONS