1
0
ketr.services/dns/etc/bind/named.conf.default-zones
James Ketrenos 592f54f809 DNS working correctly, and restructured directories
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
2023-10-10 13:41:40 -07:00

218 lines
4.9 KiB
Plaintext

view "parent" {
match-clients { parent; };
recursion yes;
forwarders {
// Google servers
8.8.8.8;
// Frontier DNS servers
184.16.4.22;
184.16.33.54;
};
// Prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// Be authoritative for the localhost forward and reverse zones,
// and for broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "1.168.192.in-addr.arpa" {
type slave;
masters { 192.168.1.78 key internal-key;};
file "/var/lib/bind/db.1.168.192-parent";
allow-transfer { any; };
allow-notify { 192.168.1.78; key parent-key; };
};
zone "0.10.10.in-addr.arpa" {
type slave;
masters { 192.168.1.78 key internal-key; };
file "/var/lib/bind/db.0.10.10";
allow-transfer { any; };
allow-notify { 192.168.1.78; key parent-key; };
};
zone "85.126.50.in-addr.arpa" IN {
type master;
file "/var/lib/bind/85.126.50.in-addr.arpa";
allow-update { none; };
};
zone ketrenos.com {
type master;
file "/var/lib/bind/db.ketrenos.com-internal";
allow-update { key ketrenos.com.; };
};
zone "sketchitect.com" {
type master;
file "/var/lib/bind/db.sketchitect.com-internal";
notify no;
};
zone "portland-werewolf.com" {
type master;
file "/var/lib/bind/db.portland-werewolf.com-internal";
notify no;
};
zone "kiaoramassage.com" {
type master;
file "/var/lib/bind/db.kiaoramassage.com-internal";
notify no;
};
};
view "internal" {
match-clients { ketrenos; };
recursion yes;
zone "85.126.50.in-addr.arpa" IN {
type master;
file "/var/lib/bind/85.126.50.in-addr.arpa";
allow-update { none; };
};
forwarders {
// Cleanbrowsing DNS server
185.228.168.10;
};
// Prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// Be authoritative for the localhost forward and reverse zones,
// and for broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone ketrenos.com {
in-view "parent";
};
zone "sketchitect.com" {
type master;
file "/var/lib/bind/db.sketchitect.com-internal";
notify no;
};
zone "portland-werewolf.com" {
type master;
file "/var/lib/bind/db.portland-werewolf.com-internal";
notify no;
};
zone "kiaoramassage.com" {
type master;
file "/var/lib/bind/db.kiaoramassage.com-internal";
notify no;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/var/lib/bind/db.192.168.1";
allow-transfer { key internal-key; };
allow-update { key ketrenos.com.; key internal-key; key parent-key; };
allow-query { 192.168.0.0/16; 127.0.0.1; };
notify yes;
};
zone "0.10.10.in-addr.arpa" {
type master;
file "/var/lib/bind/db.10.10.0";
allow-update { key ketrenos.com.; key internal-key; key parent-key; };
allow-query { 10.10.0.0/24; 127.0.0.1; };
notify yes;
};
};
view "internet" {
match-clients { "any"; };
recursion no;
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "85.126.50.in-addr.arpa" IN {
type master;
file "/var/lib/bind/85.126.50.in-addr.arpa";
allow-update { none; };
};
zone ketrenos.com {
type master;
file "/var/lib/bind/db.ketrenos.com";
allow-update { none; };
notify yes;
};
zone "sketchitect.com" {
type master;
file "/var/lib/bind/db.sketchitect.com";
notify yes;
};
zone "portland-werewolf.com" {
type master;
file "/var/lib/bind/db.portland-werewolf.com";
notify yes;
};
zone "kiaoramassage.com" {
type master;
file "/var/lib/bind/db.kiaoramassage.com";
notify yes;
};
};