Initial commit
This commit is contained in:
14
rootfs/template/db.192.168.0.zone
Normal file
14
rootfs/template/db.192.168.0.zone
Normal file
@@ -0,0 +1,14 @@
|
||||
$TTL 24h
|
||||
@ IN SOA mydomain.lan. root.mydomain.lan. (
|
||||
2013011300 ; serial number
|
||||
3h ; refresh time
|
||||
30m ; retry time
|
||||
7d ; expire time
|
||||
3h ; negative caching ttl
|
||||
)
|
||||
|
||||
IN NS ns1.mydomain.lan.
|
||||
IN NS ns2.mydomain.lan.
|
||||
|
||||
4 IN PTR host1.mydomain.lan.
|
||||
|
||||
25
rootfs/template/db.mydomain.lan.zone
Normal file
25
rootfs/template/db.mydomain.lan.zone
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
$TTL 24h
|
||||
@ IN SOA ns1.mydomain.lan. root.mydomain.lan. (
|
||||
2013011300 ; serial number
|
||||
3h ; refresh time
|
||||
30m ; retry time
|
||||
7d ; expire time
|
||||
3h ; negative caching ttl
|
||||
)
|
||||
|
||||
; name servers - NS records
|
||||
@ IN NS ns1.mydomain.lan.
|
||||
@ IN NS ns2.mydomain.lan.
|
||||
|
||||
; name servers - A records
|
||||
@ IN A 192.168.0.3 ; this is the record needed to resolve apex domain = mydomain.lan
|
||||
ns1 IN A 192.168.0.1
|
||||
ns2 IN A 192.168.0.2
|
||||
|
||||
host1 IN A 192.168.0.4
|
||||
|
||||
; name servers - CNAME records
|
||||
cname1 IN CNAME host1
|
||||
|
||||
|
||||
25
rootfs/template/named.conf
Normal file
25
rootfs/template/named.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
options {
|
||||
directory "/data";
|
||||
listen-on { any; };
|
||||
allow-query { any; };
|
||||
forwarders { 8.8.8.8; 1.1.1.1; };
|
||||
querylog yes;
|
||||
check-names master ignore;
|
||||
check-names slave ignore;
|
||||
check-names response ignore;
|
||||
//allow-transfer { any; };
|
||||
};
|
||||
|
||||
zone "mydomain.lan" {
|
||||
type master;
|
||||
file "db.mydomain.lan.zone";
|
||||
//allow-transfer { 10.128.20.12; }; # ns2
|
||||
};
|
||||
|
||||
zone "0.168.192.in-addr.arpa" {
|
||||
type master;
|
||||
file "db.192.168.0.zone";
|
||||
//allow-transfer { 10.128.20.12; }; # ns2
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user