Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c37c02cb45 | ||
|
|
c57ec513a2 | ||
|
|
6ae0c2424b | ||
|
|
85c1f1ebb7 | ||
|
|
d78a7fc31f | ||
|
|
c80d0d3b36 | ||
|
|
b00943afe5 | ||
|
|
29b495d4a9 | ||
|
|
c8ce4dd86b | ||
|
|
d73c3b35c7 | ||
|
|
0308b6460c | ||
|
|
3620027a98 | ||
|
|
ac1ccba9ee | ||
|
|
3afa0dae6a | ||
|
|
258da45d1d | ||
|
|
784e904a39 | ||
|
|
df44b8051b | ||
|
|
57a52ed70e | ||
|
|
84b038d3bb | ||
|
|
e59454ac48 | ||
|
|
5c754790c3 | ||
|
|
5455c7cab6 | ||
|
|
abb7937451 | ||
|
|
9d7b292870 | ||
|
|
8596a9638c |
12
Dockerfile
12
Dockerfile
@@ -5,13 +5,11 @@ ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV LC_ALL C.UTF-8
|
||||
|
||||
RUN apt-get -qqqy update
|
||||
RUN apt-get -qqqy install apt-utils software-properties-common
|
||||
RUN add-apt-repository -y ppa:isc/bind
|
||||
RUN apt-get -qqqy update
|
||||
RUN apt-get -qqqy dist-upgrade
|
||||
RUN apt-get -qqqy install bind9 bind9-utils
|
||||
RUN apt-get -qqqy install apt-utils software-properties-common dctrl-tools
|
||||
|
||||
VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log", "/run/named"]
|
||||
ARG DEB_VERSION=1:9.17.22-1+ubuntu20.04.1+isc+1
|
||||
RUN add-apt-repository -y ppa:isc/bind-dev
|
||||
RUN apt-get -qqqy update && apt-get -qqqy dist-upgrade && apt-get -qqqy install bind9=$DEB_VERSION bind9-utils=$DEB_VERSION
|
||||
|
||||
RUN mkdir -p /etc/bind && chown root:bind /etc/bind/ && chmod 755 /etc/bind
|
||||
RUN mkdir -p /var/cache/bind && chown bind:bind /var/cache/bind && chmod 755 /var/cache/bind
|
||||
@@ -19,6 +17,8 @@ RUN mkdir -p /var/lib/bind && chown bind:bind /var/lib/bind && chmod 755 /var/li
|
||||
RUN mkdir -p /var/log/bind && chown bind:bind /var/log/bind && chmod 755 /var/log/bind
|
||||
RUN mkdir -p /run/named && chown bind:bind /run/named && chmod 755 /run/named
|
||||
|
||||
VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"]
|
||||
|
||||
EXPOSE 53/udp 53/tcp 953/tcp
|
||||
|
||||
CMD ["/usr/sbin/named", "-g", "-c", "/etc/bind/named.conf", "-u", "bind"]
|
||||
|
||||
19
named.conf
19
named.conf
@@ -1,19 +0,0 @@
|
||||
// This is the primary configuration file for the BIND DNS server named.
|
||||
|
||||
options {
|
||||
directory "/var/cache/bind";
|
||||
dnssec-validation auto;
|
||||
listen-on-v6 { any; };
|
||||
};
|
||||
|
||||
logging {
|
||||
channel default_log {
|
||||
file "/var/log/bind/default.log" versions 3 size 20m;
|
||||
print-time yes;
|
||||
print-category yes;
|
||||
print-severity yes;
|
||||
severity info;
|
||||
};
|
||||
category default { default_log; };
|
||||
category unmatched { null; };
|
||||
};
|
||||
Reference in New Issue
Block a user