Bladeren bron

Working version for home server.

Tomi Cvetic 6 jaren geleden
bovenliggende
commit
7e2bd6f61d
3 gewijzigde bestanden met toevoegingen van 11 en 8 verwijderingen
  1. 0 3
      Dockerfile
  2. 1 2
      docker-compose.yml
  3. 10 3
      named.conf

+ 0 - 3
Dockerfile

@@ -1,7 +1,5 @@
 FROM alpine:latest
 
-MAINTAINER Tomi Cvetic <tomi@slurm.ch>
-
 RUN apk add --no-cache --update \
     bind
 
@@ -10,4 +8,3 @@ EXPOSE 53:53/udp
 VOLUME ["/etc/bind/zones"]
 
 CMD ["/usr/sbin/named", "-g", "-u", "named"]
-

+ 1 - 2
docker-compose.yml

@@ -3,8 +3,7 @@ bind:
   build: .
   volumes:
     - ./named.conf:/etc/bind/named.conf
-    - ./zones:/var/lib/bind
+    - ./zones:/etc/bind/zones
   ports:
     - "53:53/tcp"
     - "53:53/udp"
-

+ 10 - 3
named.conf

@@ -1,3 +1,11 @@
+include "/etc/bind/ddns.key";
+
+acl lan {
+	10.0.0.0/8;
+	localhost;
+	localnets;
+};
+
 options {
 	directory "/var/bind";
 
@@ -9,12 +17,11 @@ options {
 	listen-on { any; };
 	listen-on-v6 { none; };
 
-	allow-query { any; };
 	allow-transfer { none; };
 	allow-update { none; };
-	allow-recursion { none; };
 
-	recursion no;
+	recursion yes;
+	allow-query { lan; };
 };
 
 zone "slurm.ch" IN {