]> git.sesse.net Git - nms/blobdiff - config/make-named.pl
Timestamp named.pl too.
[nms] / config / make-named.pl
index 58eef853a97b292b030e4bb5bd33eadebc29723b..5f999ab44cf523174841e87236ec1c358ec8fa82 100755 (executable)
@@ -1,6 +1,9 @@
 #! /usr/bin/perl -w
 use strict;
 
+my $date = `date --rfc-2822`;
+chomp $date;
+
 # les inn nettnavn
 my %netnames = ();
 my %netmasks = ();
@@ -16,7 +19,7 @@ while (<NAMES>) {
 }
 
 print <<"EOF";
-// Autogenerated by make-named.pl. Do not edit manually! 
+// Autogenerated by make-named.pl at $date. Do not edit manually! 
 
 options {
         directory "/etc/bind";
@@ -25,8 +28,8 @@ options {
        auth-nxdomain no;
        recursion yes;
 
-       forwarders { 194.19.2.11; 194.19.3.11; }; 
-       forward only;
+//     forwarders { 194.19.2.11; 194.19.3.11; }; 
+//     forward only;
 };
 
 zone "." { type hint; file "db.root"; };
@@ -37,38 +40,32 @@ zone "0.0.127.in-addr.arpa" {
        notify no;
 };
 
-zone "tg06.gathering.org" {
-       type master;
-       file "tg06.gathering.org";
-       notify yes;
-       allow-transfer { 194.0.255.2; };
-};
-zone "www.gathering.org" {
+zone "tg07.gathering.org" {
        type master;
-       file "www.gathering.org";
+       file "tg07.gathering.org";
        notify yes;
        allow-transfer { 194.0.255.2; };
 };
 
 // serversubnett
-zone "255.0.194.in-addr.arpa" {
+zone "255.76.87.in-addr.arpa" {
        type master;
-       file "254.0.194.in-addr.arpa";
+       file "255.76.87.in-addr.arpa";
        notify yes;
        allow-transfer { 194.0.255.2; 193.0.0.0/22; };
 };
 
-zone "0.194.in-addr.arpa" {
+zone "76.87.in-addr.arpa" {
        type master;
        allow-update { key DHCP_UPDATER; };
        notify yes;
-       file "dynamic/0.194.in-addr.arpa";      
+       file "dynamic/76.87.in-addr.arpa";      
        allow-transfer { 194.19.3.20; 194.0.255.2; 193.0.0.0/22; };
 };
 
 key DHCP_UPDATER {
        algorithm HMAC-MD5.SIG-ALG.REG.INT;
-       secret 5Yz1azvh7mE0IRGffTvtKg==;
+       secret F388UOhaIIKHRH9TDE5PTA==;
 };
 
 EOF
@@ -84,11 +81,11 @@ for my $net (@nets) {
 
        for my $d (@domains) {
                print <<"EOF";
-zone "$d.tg06.gathering.org" {
+zone "$d.tg07.gathering.org" {
        type master;
        allow-update { key DHCP_UPDATER; };
        notify yes;
-       file "dynamic/$d.tg06.gathering.org";
+       file "dynamic/$d.tg07.gathering.org";
        allow-transfer { 194.19.3.20; 194.0.255.2; };
 };
 EOF