/etc/bind/named.conf

Post date: Oct 13, 2010 8:17:23 PM

include "/etc/bind/rndc.key";
options {

directory "/etc/bind";

    listen-on { any; };

allow-query { any; };

pid-file "/var/run/named/named.pid";

};
controls {
  inet * allow { localhost; 10.0.0.0/24; } keys { rndc-key; };
};
zone "." IN {

type hint;

file "named.ca";

};
zone "127.in-addr.arpa" IN {

type master;

file "pri/127.zone";

allow-update { none; };

notify yes;

};
zone "my.zone.tld" IN {

type master;

file "pri/my.zone.tld.zone";

notify no;

allow-update { key rndc-key; };

};
zone "0.10.in-addr.arpa" {
     type master;
     notify no;
     allow-update { key rndc-key; };
     file "pri/168.192.in-addr.arpa.zone";
};

shared secret for accessing and use rndc cli

Options of the named server

The base directory of config files

Listen query on any ipv4 interface of the server

Allow all dns query.

allow any rdnc client control from 10.0.0.0/24 network

Internal zone file

Internal zone file

permit zone transfert

Zone file who define ip for hostname

Reverse zone, define hostname for ip