Add function to emit the correct geoip format for bind versions
[mirror/dsa-puppet.git] / modules / named / files / common / named.conf.geo
index ad520c3..723aa75 100644 (file)
@@ -1,4 +1,4 @@
-// This file was created by dsa-geodomains/zonebuilder --create-named-conf
+// This file was created by auto-dns/build-zones --create-named-conf
 // and is distributed to hosts using puppet as
 // dsa-puppet/modules/geodns/files/common/named.conf.geo
 // you probably do not want to edit it manually wherever you find it
@@ -6,25 +6,9 @@
 view "AF" {
   match-clients { AF; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.AF";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.AF";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
-  zone "bugs.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.AF";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.AF";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -32,43 +16,30 @@ view "AF" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org.AF";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.AF";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org.AF";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-AF";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };
 view "AN" {
   match-clients { AN; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.AN";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.AN";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
-  zone "bugs.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.AN";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.AN";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -76,43 +47,30 @@ view "AN" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org.AN";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.AN";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org.AN";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-AN";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };
 view "AS" {
   match-clients { AS; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.AS";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.AS";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
-  zone "bugs.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.AS";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.AS";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -120,43 +78,30 @@ view "AS" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org.AS";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.AS";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org.AS";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-AS";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };
 view "EU" {
   match-clients { EU; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.EU";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.EU";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
-  zone "bugs.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.EU";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.EU";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -164,43 +109,30 @@ view "EU" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org.EU";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.EU";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org.EU";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-EU";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };
 view "NA" {
   match-clients { NA; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.NA";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.NA";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
-  zone "bugs.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.NA";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.NA";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -208,43 +140,30 @@ view "NA" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org.NA";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.NA";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org.NA";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-NA";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };
 view "OC" {
   match-clients { OC; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.OC";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.OC";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
-  zone "bugs.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.OC";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.OC";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -252,87 +171,92 @@ view "OC" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org.OC";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.OC";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org.OC";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-OC";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };
 view "SA" {
   match-clients { SA; };
 
-  zone "security.geo.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org.SA";
-    notify no;
-    allow-query { any; };
-    allow-transfer { };
-  };
-
   zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org.SA";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.SA";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "bugs.debian.org" {
+  zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.bugs.debian.org.SA";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.SA";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "www.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.www.debian.org.SA";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-SA";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
+};
+view "undef" {
+  match-clients { undef; };
 
-  zone "packages.debian.org" {
+  zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.packages.debian.org.SA";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org.undef";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-};
-view "default" {
-  match-clients { any; };
-
-  zone "security.geo.debian.org" {
+  zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.security.debian.org";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org.undef";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "security.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.security.debian.org";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-undef";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
+};
+view "default" {
+  match-clients { any; };
 
-  zone "bugs.debian.org" {
+  zone "security.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.bugs.debian.org";
+    file "/etc/bind/geodns/zonefiles/db.security.debian.org";
     notify no;
     allow-query { any; };
     allow-transfer { };
@@ -340,18 +264,21 @@ view "default" {
 
   zone "www.debian.org" {
     type master;
-    file "/etc/bind/geodns/db.www.debian.org";
+    file "/etc/bind/geodns/zonefiles/db.www.debian.org";
     notify no;
     allow-query { any; };
     allow-transfer { };
   };
 
-  zone "packages.debian.org" {
-    type master;
-    file "/etc/bind/geodns/db.packages.debian.org";
+  zone "29.172.in-addr.arpa" {
+    type slave;
     notify no;
+    file "db.29.172.in-addr.arpa-default";
+    masters {
+      82.195.75.91; // denis
+      2001:41b8:202:deb:1b1b::91; // denis
+    };
     allow-query { any; };
     allow-transfer { };
   };
-
 };