diff --git a/bind/etc/named.conf.options b/bind/etc/named.conf.options new file mode 100644 index 0000000..8d2c3fe --- /dev/null +++ b/bind/etc/named.conf.options @@ -0,0 +1,42 @@ + +options { + directory "/var/named"; + version "unimportant"; + allow-transfer {"none";}; + // Allow clients in the 192.168.0.0/24 and 192.168.1.0/24 networks to query the local dns + allow-recursion {192.168.0.0/23;}; +}; + +logging { + channel named_log { + file "/var/log/named/named.log" versions 10 size 2m; + severity info; + print-severity yes; + print-time yes; + print-category yes; + }; + category default { + named_log; + }; +}; + +zone "." { + type hint; + file "root.servers"; +}; + +zone home.icebergh.us IN { + type master; + file "forward/home.icebergh.us.db"; + allow-transfer {none;}; +} + +zone "0.168.192.in-addr.arpa" in { + type master; + file "reverse/192.168.0.db"; +}; + +zone "1.168.192.in-addr.arpa" in { + type master; + file "reverse/192.168.1.db"; +}; diff --git a/bind/named/forward/home.icebergh.us.db b/bind/named/forward/home.icebergh.us.db new file mode 100644 index 0000000..2a54259 --- /dev/null +++ b/bind/named/forward/home.icebergh.us.db @@ -0,0 +1,21 @@ +$TTL 2d +$ORIGIN home.icebergh.us. +@ IN SOA ns.home.icebergh.us. orien@icebergh.us. ( + 2016031801 + 12h ; refresh interval + 15m ; update retry + 3w ; expiry + 3h ; minimum + ) + + IN NS ns.home.icebergh.us. + IN MX 10 mail.icebergh.us. + +gateway IN A 192.168.0.1 +erl IN CNAME gateway.home.icebergh.us. + +beast IN A 192.168.0.20 +ns IN CNAME beast.home.icebergh.us. +orihime IN A 192.168.0.21 + + diff --git a/bind/named/reverse/192.168.0.db b/bind/named/reverse/192.168.0.db new file mode 100644 index 0000000..a582135 --- /dev/null +++ b/bind/named/reverse/192.168.0.db @@ -0,0 +1,18 @@ +$TTL 2d +$ORIGIN 0.168.192.in-addr.arpa. +@ IN SOA ns.home.icebergh.us. orien@icebergh.us. ( + 2016031801 + 12h ; refresh interval + 15m ; update retry + 3w ; expiry + 3h ; minimum + ) + + IN NS ns.home.icebergh.us. + +1 IN PTR gateway.home.icebergh.us. + +20 IN PTR beast.home.icebergh.us. +21 IN PTR orihime.home.icebergh.us. + +