diff options
Diffstat (limited to 'etc/dns')
-rw-r--r-- | etc/dns/backup.conf | 43 | ||||
-rw-r--r-- | etc/dns/primary.conf | 49 |
2 files changed, 92 insertions, 0 deletions
diff --git a/etc/dns/backup.conf b/etc/dns/backup.conf new file mode 100644 index 0000000..1f58dac --- /dev/null +++ b/etc/dns/backup.conf @@ -0,0 +1,43 @@ +options { + directory "/var/bind"; + pid-file "/var/run/named/named.pid"; +}; + +zone "." IN { + type hint; + file "named.ca"; +}; + +zone "randomdan.homeip.net" IN { + type slave; + masters { 192.168.0.3; }; +}; + +zone "random.lan" IN { + type slave; + masters { 192.168.0.3; }; +}; + +zone "randomdan.lan" IN { + type slave; + masters { 192.168.0.3; }; +}; + +zone "localhost" IN { + type master; + file "pri/localhost.zone"; + allow-update { none; }; + notify no; +}; + +zone "0.168.192.in-addr.arpa" IN { + type slave; + masters { 192.168.0.3; }; +}; + +zone "127.in-addr.arpa" IN { + type master; + file "pri/127.zone"; + allow-update { none; }; + notify no; +}; diff --git a/etc/dns/primary.conf b/etc/dns/primary.conf new file mode 100644 index 0000000..d9892f0 --- /dev/null +++ b/etc/dns/primary.conf @@ -0,0 +1,49 @@ +options { + directory "/var/bind"; + pid-file "/var/run/named/named.pid"; +}; + +zone "." IN { + type hint; + file "named.ca"; +}; + +zone "randomdan.homeip.net" IN { + type master; + file "pri/randomdan.homeip.net.zone"; + also-notify { 192.168.0.2; }; + allow-update { key updatekey; }; +}; + +zone "random.lan" IN { + type master; + file "pri/random.lan.zone"; + also-notify { 192.168.0.2; }; + allow-update { key updatekey; }; +}; + +zone "0.168.192.in-addr.arpa" IN { + type master; + file "pri/0.168.192.zone"; + also-notify { 192.168.0.2; }; + allow-update { key updatekey; }; +}; + +zone "localhost" IN { + type master; + file "pri/localhost.zone"; + allow-update { none; }; + notify no; +}; + +zone "127.in-addr.arpa" IN { + type master; + file "pri/127.zone"; + allow-update { none; }; + notify no; +}; + +key updatekey { + algorithm hmac-md5; + secret "df61eb0aa23833c56751a6c8f579f695"; +}; |