[bind] Il faut autorisé les recursif à transferer le reverse de la tv

This commit is contained in:
Valentin Samir 2013-05-28 18:45:10 +02:00
parent a022e56833
commit 5799b43729
2 changed files with 9 additions and 4 deletions

View file

@ -81,7 +81,7 @@ if has("dns-recursif") and not has("dns-secondary-no-forward"):
elif has("dns-forward-only"): elif has("dns-forward-only"):
@forward only; @forward only;
print "forwarders { %s; };" % '; '.join(config.dns.recursiv) print "forwarders { %s; };" % '; '.join(config.dns.recursiv_adm)
@// anti SPAM @// anti SPAM
@// Rajout pour generer le forward vers ariane pour la zone rbl-plus.mail-abuse.org --Nico 21/04/02 @// Rajout pour generer le forward vers ariane pour la zone rbl-plus.mail-abuse.org --Nico 21/04/02

View file

@ -53,10 +53,15 @@ if has("dns-primary") or has("dns-tv"):
@ 138.231.136.0/21; // fixes @ 138.231.136.0/21; // fixes
@ 138.231.148.0/22; // wifi @ 138.231.148.0/22; // wifi
@ 10.231.136.0/24; // adm @ 10.231.136.0/24; // adm
allowed = set()
if has("dns-primary"): if has("dns-primary"):
print " %s;" % ';\n '.join(config.dns.slaves + config.dns.parents) allowed = allowed.union(config.dns.slaves + config.dns.parents)
elif has("dns-tv"): if has("dns-tv"):
print " %s;" % ';\n '.join(config.dns.slaves_tv + config.dns.recursiv) allowed = allowed.union(config.dns.slaves_tv + config.dns.recursiv_adm)
if allowed:
allowed = list(allowed)
allowed.sort()
print " %s;" % ';\n '.join(allowed)
@ }; @ };
@ allow-query { any; }; @ allow-query { any; };
@ auth-nxdomain no; # conform to RFC1035 @ auth-nxdomain no; # conform to RFC1035