[bind] Configuration spécifique pour le VLAN d'accueil
darcs-hash:20081209233526-ffbb2-15f8c45c7c6303e5ea951125871807d40e373dc2.gz
This commit is contained in:
parent
e285d809b0
commit
bf2adc66c3
5 changed files with 95 additions and 10 deletions
|
@ -1,13 +1,23 @@
|
|||
# -*- mode: python; encoding: utf-8 -*-
|
||||
|
||||
info["owner"] = "root"
|
||||
info["group"] = "bind"
|
||||
info["perms"] = 0644
|
||||
|
||||
@// Fichier gere par BCfg2 (Plugin Python)
|
||||
@//
|
||||
@// A ne modifier que sur vert
|
||||
@
|
||||
comment_start = "//"
|
||||
|
||||
header("Options de Bind9")
|
||||
|
||||
comment("Listes d'accès")
|
||||
if has("vlan-radin"):
|
||||
@acl "radins" { 10.42.0.0/16; };
|
||||
@acl "accueil" { 10.51.0.0/16; };
|
||||
@acl "crans" { 138.231.136.0/21; 138.231.144.0/21; };
|
||||
@acl "cransadm" { 10.231.136.0/24; };
|
||||
|
||||
|
||||
@options {
|
||||
@ directory "/var/cache/bind";
|
||||
@ directory "/var/cache/bind";
|
||||
@ recursive-clients 5000;
|
||||
@
|
||||
|
||||
|
@ -22,17 +32,20 @@ if has("dns-primary"):
|
|||
@ 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 decommentee en mode secours)
|
||||
@ // Ne pas modifier le commentaire de fin de ligne suivant,
|
||||
@ // traitement automatique pour la connexion de secours
|
||||
@ // (ligne decommentee automatiquement en mode secours)
|
||||
@// forwarders { 138.231.136.14; } ; #POUR SECOURS
|
||||
|
||||
@
|
||||
@ allow-recursion {127.0.0.1; 10.231.136.0/24; 138.231.136.0/21; 138.231.144.0/21;};
|
||||
if not has("vlan-radin"):
|
||||
@ allow-recursion {"localnets"; "cransadm"; "crans";};
|
||||
else
|
||||
@ allow-recursion {"localnets"; "cransadm"; "crans"; "radins";};
|
||||
@};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue