Import des fichiers de configuration de bind

darcs-hash:20080209002334-ffbb2-8c8c92b6a327767ae6794104f26e198ff3760ed8.gz
This commit is contained in:
Nicolas Dandrimont 2008-02-09 01:23:34 +01:00
parent c3e91c27c9
commit 04c9d242bb
7 changed files with 111 additions and 0 deletions

View file

@ -0,0 +1,39 @@
info = {"owner":"root",
"group":"bind",
"perms":0644,
}
@// Fichier gere par BCfg2 (Plugin Python)
@//
@// A ne modifier que sur vert
@
@options {
@ directory "/var/cache/bind";
@ recursive-clients 5000;
@
if has("dns-primary"):
@ include "/etc/bind/named.conf.notify";
@
@ allow-transfer {
@ 127.0.0.1;
@ 138.231.136.0/21; // fixes
@ 82.225.39.54; // freebox
@ 138.231.148.0/22; // wifi
@ 10.231.136.0/24; // adm
@ 138.231.176.4; // ariane
@ };
@ auth-nxdomain no; # conform to RFC1035
@
if not has("dns-secondary-no-forward"):
@ //ne pas modifier le commentaire de fin de ligne suivant
@ //traitement automatique pour la connexion de secours
@ //(ligne décommentée en mode secours)
@// forwarders { 138.231.136.9; } ; #POUR SECOURS
@
@ allow-recursion {127.0.0.1; 10.231.136.0/24; 138.231.136.0/21; 138.231.144.0/21;};
@};

16
Python/etc/bind/rndc.key Normal file
View file

@ -0,0 +1,16 @@
import("secrets")
info = {"owner": "root",
"group": "bind",
"perms": 0640,
}
@// Fichier gere par BCfg2 (plugin Python)
@//
@// A ne modifier que sur vert
@
@key "key" {
@ algorithm hmac-md5;
print ' secret "%s";' % secrets.rndc_key
@};