aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2021-07-29 16:44:04 +0000
committerMike Crute <mike@crute.us>2021-07-29 16:44:04 +0000
commit1b4775e4bbf02a247d7d7d36b61d9e95a4cddb27 (patch)
treea28bd3766aaebf58e6082404b87770e1d5e4b56a
parent1b79c602123568db2c2169d766d94fe50d98e760 (diff)
downloaddockerfiles-1b4775e4bbf02a247d7d7d36b61d9e95a4cddb27.tar.bz2
dockerfiles-1b4775e4bbf02a247d7d7d36b61d9e95a4cddb27.tar.xz
dockerfiles-1b4775e4bbf02a247d7d7d36b61d9e95a4cddb27.zip
bind: allow controlling logging in cfg
-rw-r--r--bind/Dockerfile2
-rw-r--r--bind/Makefile4
-rw-r--r--bind/conf/named.conf10
3 files changed, 8 insertions, 8 deletions
diff --git a/bind/Dockerfile b/bind/Dockerfile
index bb23637..3ac7104 100644
--- a/bind/Dockerfile
+++ b/bind/Dockerfile
@@ -23,4 +23,4 @@ RUN set -euxo pipefail; \
23 23
24#ENTRYPOINT [ "/bind_bootstrap" ] 24#ENTRYPOINT [ "/bind_bootstrap" ]
25ENTRYPOINT [ "/entrypoint.sh" ] 25ENTRYPOINT [ "/entrypoint.sh" ]
26CMD [ "/usr/sbin/named", "-u", "named", "-g" ] 26CMD [ "/usr/sbin/named", "-u", "named", "-f" ]
diff --git a/bind/Makefile b/bind/Makefile
index 2045b05..b1e37b4 100644
--- a/bind/Makefile
+++ b/bind/Makefile
@@ -1,10 +1,10 @@
1IMAGE=docker.crute.me/bind:latest 1IMAGE=docker.crute.me/bind:latest
2 2
3all: 3all:
4 CGO_ENABLED=0 go build -o bind_bootstrap main.go 4 #CGO_ENABLED=0 go build -o bind_bootstrap main.go
5 docker pull alpine:edge 5 docker pull alpine:edge
6 docker build -t $(IMAGE) . 6 docker build -t $(IMAGE) .
7 rm bind_bootstrap 7 #rm bind_bootstrap
8 8
9all-no-cache: 9all-no-cache:
10 docker build --no-cache -t $(IMAGE) . 10 docker build --no-cache -t $(IMAGE) .
diff --git a/bind/conf/named.conf b/bind/conf/named.conf
index b7d563d..ceba546 100644
--- a/bind/conf/named.conf
+++ b/bind/conf/named.conf
@@ -56,6 +56,10 @@ options {
56 }; 56 };
57}; 57};
58 58
59logging {
60 category default { default_stderr; default_debug; };
61};
62
59statistics-channels { 63statistics-channels {
60 inet 127.0.0.1 port 8053 allow { localhost; }; 64 inet 127.0.0.1 port 8053 allow { localhost; };
61 inet ::1 port 8053 allow { localhost; }; 65 inet ::1 port 8053 allow { localhost; };
@@ -75,12 +79,8 @@ acl internal-nets {
75 79
76 // Pomona ARIN 80 // Pomona ARIN
77 23.149.16.0/24; 81 23.149.16.0/24;
82 104.250.232.0/22;
78 2602:0803:4000::/40; 83 2602:0803:4000::/40;
79
80 // AWS
81 2600:1f14:f39:e000::/56;
82 2600:1f16:33:500::/56;
83 2a05:d01c:7ba:b800::/56;
84}; 84};
85 85
86include "/etc/bind/local/named.conf"; 86include "/etc/bind/local/named.conf";