Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Serveur Principale :
- /etc/bind/named.conf :
- // This is the primary configuration file for the BIND DNS server named.
- //
- // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
- // structure of BIND configuration files in Debian, *BEFORE* you customize
- // this configuration file.
- //
- // If you are just adding zones, please do that in /etc/bind/named.conf.local
- include "/etc/bind/named.conf.options";
- include "/etc/bind/named.conf.local";
- include "/etc/bind/named.conf.default-zones";
- //resolution direct pour la zone
- zone "binome4.fr" in {
- type master;
- file "/etc/bind/db.binome4.fr";
- };
- //ici la résolution inverse pour la zone
- zone "40.19.10.in-addr.arpa" in {
- type master;
- file"/etc/bind/db.10.19.40";
- };
- /etc/bind/db.binome4.fr :
- $TTL 86400
- binome4.fr. IN SOA dns1.binome4.fr. postmaster.binome4.fr. (
- 2000020201 ; Serial
- 10800 ; Refresh
- 3600 ; Retry
- 604800 ; Expire
- 86400 ) ; Negative Cache TTL
- ;Serveur primaire et secondaire
- binome4.fr. IN NS dns1.binome4.fr.
- binome4.fr. IN NS dns2.binome4.fr.
- ;Hote local
- localhost.binome4.fr. IN A 127.0.0.1
- ;hotes declares
- dns1.binome4.fr. IN A 10.19.40.23
- dns2.binome4.fr. IN A 10.19.40.22
- /etc/bind/db.10.19.40 :
- $TTL 86400
- 40.19.10.in-addr.arpa. IN SOA dns1.binome4.fr. postmaster.binome4.fr. (
- 2009020201 ; serial
- 10800 ; refresh, seconds
- 3600 ; retry, seconds
- 604800 ; expire, seconds
- 86400 ) ; minimum, seconds
- 40.19.10.in-addr.arpa. IN NS dns1.binome4.fr.
- 23 IN PTR dns1.binome4.fr.
- 22 IN PTR dns2.binome4.fr.
- /etc/bind/db.127 :
- ;
- ; BIND reverse data file for local loopback interface
- ;
- $TTL 86400
- 0.0.127.in-addr.arpa. IN SOA dns1.binome4.fr postmaster.binome4.fr. (
- 2009020202 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
- 0.0.127.in-addr.arpa. IN NS dns1.binome4.fr.
- 0.0.127.in-addr.arpa. IN NS dns2.binome4.fr.
- 1.0.0.127.in-addr.arpa. IN PTR localhost.
- Serveur secondaire
- /etc/bin/named.conf :
- // structure of BIND configuration files in Debian, *BEFORE* you customize
- // this configuration file.
- //
- // If you are just adding zones, please do that in /etc/bind/named.conf.local
- include "/etc/bind/named.conf.options";
- include "/etc/bind/named.conf.local";
- include "/etc/bind/named.conf.default-zones";
- //resolution direct pour la zone
- zone "binome4.fr" in {
- type slave;
- file "/etc/bind/db.binome4.fr";
- masters {10.19.70.23;};
- };
- //ici la résolution inverse pour la zone
- zone "40.19.10.in-addr.arpa" in {
- type slave;
- file"/etc/bind/db.10.19.40";
- masters {10.19.70.23;};
- };
Advertisement
Add Comment
Please, Sign In to add comment