From 44ce3cff49b71e9c60c07751088c64467fca4bb5 Mon Sep 17 00:00:00 2001 From: Martin Zobel-Helas Date: Tue, 29 Dec 2009 17:25:12 +0100 Subject: [PATCH] add undef zone --- modules/named/files/common/named.conf.acl | 5 + modules/named/files/common/named.conf.geo | 60 ++++++++++++ modules/named/files/common/recvconf.files | 108 +++++++++++----------- 3 files changed, 119 insertions(+), 54 deletions(-) diff --git a/modules/named/files/common/named.conf.acl b/modules/named/files/common/named.conf.acl index 42a63495..8ca867a8 100644 --- a/modules/named/files/common/named.conf.acl +++ b/modules/named/files/common/named.conf.acl @@ -282,3 +282,8 @@ acl AN { country_HM; country_TF; }; + +acl undef { + country_A1; + country_A2; +}; diff --git a/modules/named/files/common/named.conf.geo b/modules/named/files/common/named.conf.geo index 41549426..57fe2199 100644 --- a/modules/named/files/common/named.conf.geo +++ b/modules/named/files/common/named.conf.geo @@ -422,6 +422,66 @@ view "SA" { allow-transfer { }; }; +}; +view "undef" { + match-clients { undef; }; + + zone "volatile.debian.org" { + type master; + file "/etc/bind/geodns/db.volatile.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + + zone "security.geo.debian.org" { + type master; + file "/etc/bind/geodns/db.security.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + + zone "security.debian.org" { + type master; + file "/etc/bind/geodns/db.security.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + + zone "ftp.debian.org" { + type master; + file "/etc/bind/geodns/db.ftp.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + + zone "bugs.debian.org" { + type master; + file "/etc/bind/geodns/db.bugs.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + + zone "www.debian.org" { + type master; + file "/etc/bind/geodns/db.www.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + + zone "packages.debian.org" { + type master; + file "/etc/bind/geodns/db.packages.debian.org.undef"; + notify no; + allow-query { any; }; + allow-transfer { }; + }; + }; view "default" { match-clients { any; }; diff --git a/modules/named/files/common/recvconf.files b/modules/named/files/common/recvconf.files index b29a2394..e9123832 100644 --- a/modules/named/files/common/recvconf.files +++ b/modules/named/files/common/recvconf.files @@ -57,6 +57,60 @@ file etc/bind/geodns/db.bugs.debian.org.NA group geodnssync precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail bugs.debian.org etc/bind/geodns/db.bugs.debian.org.NA postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.AN + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.AN + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.SA + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.SA + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.OC + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.OC + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.AS + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.AS + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.undef + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.undef + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.AF + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.AF + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.EU + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.EU + postcommand sudo /etc/init.d/bind9 reload +file etc/bind/geodns/db.ftp.debian.org.NA + perms 0644 + user geodnssync + group geodnssync + precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.NA + postcommand sudo /etc/init.d/bind9 reload file etc/bind/geodns/db.packages.debian.org.AN perms 0644 user geodnssync @@ -273,57 +327,3 @@ file etc/bind/geodns/db.www.debian.org.NA group geodnssync precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail www.debian.org etc/bind/geodns/db.www.debian.org.NA postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.AN - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.AN - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.SA - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.SA - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.OC - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.OC - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.AS - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.AS - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.undef - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.undef - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.AF - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.AF - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.EU - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.EU - postcommand sudo /etc/init.d/bind9 reload -file etc/bind/geodns/db.ftp.debian.org.NA - perms 0644 - user geodnssync - group geodnssync - precommand /usr/sbin/named-checkzone -q -k fail -n fail -S fail -i full -m fail -M fail ftp.debian.org etc/bind/geodns/db.ftp.debian.org.NA - postcommand sudo /etc/init.d/bind9 reload -- 2.39.2