Reverse Zone and Caching Nameserver for the AWMN Centos

A quick and dirty how-to for a reverse-zone & caching nameserver for the AWMN on Centos :() .

The System:
# cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m



I will put everything in /etc/named.conf and the zones files in /var/named/data/.

This is an ultra-basic /etc/named.conf that makes bind a caching nameserver for the AWMN and the Internet and authoritative for the reverse zone of 192.0.2.0/24

# cat /etc/named.conf
#g0
#ervthseis? - problimata ?
#questions? - issues ?
#https://ipduh.com/contact

options {


        version "awmn version";
        directory "/etc";
        pid-file "/var/run/named/named.pid";
        auth-nxdomain no; #RFC1035 ipduh

        allow-notify { 192.0.2.2; };
        allow-transfer { 192.0.2.2; };



        };

zone "2.0.192.in-addr.arpa." {

        type master;
        file "/var/named/data/db.2.0.192.in-addr.arpa";
        allow-transfer { 192.0.2.2; };

        };

//####################################
//# Greek Wireless Communities Zones #
//####################################
//# https://www.awmn.net/wiki/       #
//####################################
//Because awmn will go gwmn pretty soon g stands for Greek or Global ;)
//####################################


zone "10.in-addr.arpa" IN {
        type forward;
        forwarders {
        
        10.19.143.12;
        //10.19.143.13;
        };
};

zone "awmn" IN {
        type forward;
        forwarders {
  
                10.19.143.12;
  //             10.19.143.13;
        };
};

zone "wn" IN {
        type forward;
        forwarders {
                10.126.3.115;
                10.110.17.115;
                10.19.143.12;
                10.17.122.134;
                10.86.87.129;
                10.2.16.130;
                10.110.17.67;
        };
};

zone "swn" IN {
        type forward;
        forwarders {
                10.101.0.254;
                10.106.3.1;
                10.174.254.101;
                10.174.1.253;
        };
};

zone "swn" IN {
        type forward;
        forwarders {
                10.101.0.254;
                10.106.3.1;
                10.174.254.101;
                10.174.1.253;
        };
};

zone "twmn" IN {
        type forward;
        forwarders {
                10.104.76.65;
                10.122.20.70;
                10.122.3.68;
                10.122.14.72;
                10.104.1.74;
        };
};

zone "wthess" IN {
        type forward;
        forwarders {
                10.96.0.1;
                10.96.22.2;
                10.96.9.3;
        };
};

zone "wthess" IN {
        type forward;
        forwarders {
                10.96.0.1;
                10.96.22.2;
                10.96.9.3;
        };
};

zone "ewn" IN {
        type forward;
        forwarders {
                10.145.7.150;
                10.146.210.130;
        };
};

zone "mswn" IN {
        type forward;
        forwarders {
                10.148.50.2;
        };
};

zone "cywn" IN {
        type forward;
        forwarders {
                10.215.0.125;
                10.215.2.126;
        };
};

zone "dwn" IN {
        type forward;
        forwarders {
                10.174.1.253;
                10.174.254.101;
                10.174.17.250;
        };
};

zone "wiran" IN {
        type forward;
        forwarders {
                10.230.3.133;
        };
};

zone "wana" IN {
        type forward;
        forwarders {
                10.224.3.35;
        };
};

zone "awn" IN {
        type forward;
        forwarders {
                10.198.0.130;
        };
};

zone "pwmn" IN {
        type forward;
        forwarders {
                10.140.14.67;
        };
};

zone "." {

        type hint;
        file "/etc/db.cache";

        };



Set Named Init Levels
# chkconfig --level 345 named on


Basic administration:

To restart bind:
# /etc/init.d/named restart


To view all the reverse zones and origins:
# cat /var/named/data/* |egrep "PTR|ORIG"


Reverse Zone and Caching Nameserver for the AWMN Centos