2016-01-11 02:56:33 +00:00
|
|
|
#!/bin/sh
|
2018-11-19 21:08:35 +00:00
|
|
|
OPTIONS=$@
|
2019-05-04 06:51:14 +00:00
|
|
|
chown -R root:named /etc/bind /var/run/named
|
|
|
|
chown -R named:named /var/cache/bind
|
2018-02-28 15:50:35 +00:00
|
|
|
chmod -R 770 /var/cache/bind /var/run/named
|
2018-02-13 04:35:24 +00:00
|
|
|
chmod -R 750 /etc/bind
|
2020-03-07 04:23:35 +00:00
|
|
|
# By default - run in foreground and log to STDERR (console)
|
|
|
|
# can be changed by running container with: -e "BIND_LOG=-f"
|
|
|
|
exec /usr/sbin/named -c /etc/bind/named.conf $BIND_LOG -u named $OPTIONS
|