From 2540e1798e4b593c3c662d84d7f5c8e18d5ad085 Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 22 Nov 2006 23:36:35 +0000 Subject: Remove portage config and add bind config --- etc/dns/backup.conf | 43 +++++++++++++++++++++++++++++++++++++++++++ etc/dns/primary.conf | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 etc/dns/backup.conf create mode 100644 etc/dns/primary.conf (limited to 'etc/dns') 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"; +}; -- cgit v1.2.3