add
This commit is contained in:
10
Bind9/config/home-clcreative-de.zone
Normal file
10
Bind9/config/home-clcreative-de.zone
Normal file
@ -0,0 +1,10 @@
|
||||
$ORIGIN .
|
||||
$TTL 86400 ; 1 day
|
||||
home.clcreative.de IN SOA ns.home.clcreative.de. home.clcreative.de. (
|
||||
2001062618 ; serial
|
||||
3600 ; refresh (1 hour)
|
||||
3600 ; retry (1 hour)
|
||||
2419200 ; expire (4 weeks)
|
||||
3600 ; minimum (1 hour)
|
||||
)
|
||||
NS ns.home.clcreative.de.
|
39
Bind9/config/named.conf
Normal file
39
Bind9/config/named.conf
Normal file
@ -0,0 +1,39 @@
|
||||
include "/etc/bind/named.conf.key";
|
||||
|
||||
controls {
|
||||
inet 127.0.0.1 port 953
|
||||
allow { 127.0.0.1; } keys { "tsig-key"; };
|
||||
};
|
||||
|
||||
acl docker-1 {
|
||||
172.17.0.0/16;
|
||||
172.18.0.0/16;
|
||||
172.19.0.0/16;
|
||||
172.20.0.0/16;
|
||||
172.21.0.0/16;
|
||||
172.22.0.0/16;
|
||||
172.23.0.0/16;
|
||||
172.24.0.0/16;
|
||||
};
|
||||
|
||||
acl dmz-prod-1 {
|
||||
10.20.0.0/16;
|
||||
};
|
||||
|
||||
acl lan-prod-1 {
|
||||
10.10.0.0/16;
|
||||
};
|
||||
|
||||
options {
|
||||
forwarders {
|
||||
1.1.1.1;
|
||||
1.0.0.1;
|
||||
};
|
||||
allow-query { 127.0.0.1; docker-1; lan-prod-1; dmz-prod-1; };
|
||||
};
|
||||
|
||||
zone "home.clcreative.de" IN {
|
||||
type master;
|
||||
file "/etc/bind/home-clcreative-de.zone";
|
||||
update-policy { grant tsig-key zonesub any; };
|
||||
};
|
7
Bind9/config/rndc.conf
Normal file
7
Bind9/config/rndc.conf
Normal file
@ -0,0 +1,7 @@
|
||||
include "/etc/bind/named.conf.key";
|
||||
|
||||
options {
|
||||
default-key "tsig-key";
|
||||
default-server 127.0.0.1;
|
||||
default-port 953;
|
||||
};
|
12
Bind9/docker-compose.yaml
Normal file
12
Bind9/docker-compose.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
services:
|
||||
bind9:
|
||||
container_name: dns-prod-1
|
||||
image: ubuntu/bind9:9.18-23.04_edge
|
||||
environment:
|
||||
- BIND9_USER=root
|
||||
- TZ=Europe/Berlin
|
||||
volumes:
|
||||
- ./config/:/etc/bind:rw
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
Reference in New Issue
Block a user