Exemple de configuration de serveur avec BIND

Fichier named.conf pour BIND9 sur Zeratul (maitre pour ipv6.int-evry.fr)


//## This is the configuration file for the BIND DNS server named.
//## BIND 9.3.0

options {
     directory "/etc/bind";
     zone-statistics yes;
     dnssec-enable yes;
     listen-on-v6 {any;}; 
};

//## rndc control
key rndc { algorithm hmac-md5; secret "XXXXXXXXXXXXXXXXXXX";};
controls { inet 127.0.0.1 allow { localhost; } keys { rndc; }; };

//## prime the server with knowledge of DNS root servers
zone "." { type hint; file "/etc/bind/db.root"; };

//## Conventional zones :
//## be authoritative for the localhost forward and reverse zones, and for
//## broadcast zones as per RFC 1912
zone "localhost"         { type master; file "/etc/bind/db.local"; notify no;};
zone "127.in-addr.arpa"  { type master; file "/etc/bind/db.127"; notify no;};
zone "0.in-addr.arpa"    { type master; file "/etc/bind/db.0"; notify no;};
zone "255.in-addr.arpa"  { type master; file "/etc/bind/db.0"; notify no;};
zone "10.in-addr.arpa"   { type master; file "/etc/bind/db.0"; };
zone "168.192.in-addr.arpa"   { type master; file "/etc/bind/db.0"; };
zone "254.169.in-addr.arpa"   { type master; file "/etc/bind/db.0"; };
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int" 
	{ type master; file "/etc/bind/db.0..0"; notify no;};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" 
	{ type master; file "/etc/bind/db.0..0"; notify no;};
zone "e.f.ip6.arpa"  { type master; file "/etc/bind/db.0"; };
zone "e.f.ip6.int"   { type master; file "/etc/bind/db.0"; };

//## Domaine IPV6 INT, slave: diamant, hugo
zone "ipv6.int-evry.fr"  { type master; file "/etc/bind/db.ipv6";};

//## Reverse IPV6 INT, slave:  hugo
zone "3.0.2.3.0.6.6.0.1.0.0.2.ip6.int" 
	{ type master; file "/etc/bind/db.reverse6_2001";};
zone "3.0.2.3.0.6.6.0.1.0.0.2.ip6.arpa" 
	{ type master; file "/etc/bind/db.reverse6_2001";};

//## Sous-domaines experimentation IPv6 , slave :  hugo
zone "dom2.ipv6.int-evry.fr" { type master; file "/etc/bind/db.domaine2";};
zone "dom3.ipv6.int-evry.fr" { type master; file "/etc/bind/db.domaine3";};

//## Demonstration, no slave
zone "zone.test."  { type master; file "/etc/bind/Zone_Test";};

//## Slave DNSSEC CADDISC, master :  alambix
zone "int-evry.caddisc.enst.idsa.prd.fr." 
        { type slave; file "Caddisc"; masters { 157.159.100.57; }; };

//## Sample Slave Zones
//zone "YYY" { type slave; file "xxx"; masters { x.x.x.x; }; };

//## Sample Per Zone Forward
//zone "ZZZ" { type forward; forwarders { x.x.x.x; }; };