diff options
| -rw-r--r-- | frontends/Rexfile | 6 | ||||
| -rw-r--r-- | frontends/var/nsd/etc/nsd.conf.master.tpl | 6 | ||||
| -rw-r--r-- | frontends/var/nsd/zones/master/buetow.org.zone.tpl | 11 | ||||
| -rw-r--r-- | frontends/var/nsd/zones/master/foo.zone.zone.tpl | 1 |
4 files changed, 20 insertions, 4 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index df68d2c..a9bb5be 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -14,9 +14,9 @@ use File::Slurp; # REX CONFIG SECTION -group frontends => 'blowfish.buetow.org', 'twofish.buetow.org'; +group frontends => 'blowfish.buetow.org', 'fishfinger.buetow.org', 'twofish.buetow.org'; group dnsmaster => 'blowfish.buetow.org'; -group dnsslaves => 'twofish.buetow.org'; +group dnsslaves => 'fishfinger.buetow.org', 'twofish.buetow.org'; user 'rex'; sudo TRUE; @@ -32,6 +32,7 @@ our $ipv6address = sub { my $hostname = shift; return '2a01:4f8:c17:20f1::42' if $hostname eq 'blowfish'; return '2401:c080:1000:45af:5400:3ff:fec6:ca1d' if $hostname eq 'twofish'; + return '2a03:6000:6f67:624::99' if $hostname eq 'fishfinger'; Rex::Logger::info("Unable to determine IPv6 address for $hostname", 'error'); return '::1'; }; @@ -42,6 +43,7 @@ our $fqdns = sub { my $ipv4 = shift; return 'blowfish.buetow.org' if $ipv4 eq '23.88.35.144'; return 'twofish.buetow.org' if $ipv4 eq '108.160.134.135'; + return 'fishfinger.buetow.org' if $ipv4 eq '46.23.94.99'; Rex::Logger::info("Unable to determine hostname for $ipv4", 'error'); return 'HOSTNAME-UNKNOWN.buetow.org'; }; diff --git a/frontends/var/nsd/etc/nsd.conf.master.tpl b/frontends/var/nsd/etc/nsd.conf.master.tpl index 310550a..cf1c311 100644 --- a/frontends/var/nsd/etc/nsd.conf.master.tpl +++ b/frontends/var/nsd/etc/nsd.conf.master.tpl @@ -14,6 +14,8 @@ remote-control: zone: name: "<%= $zone %>" zonefile: "master/<%= $zone %>.zone" - notify: 108.160.134.135 blowfish.buetow.org - provide-xfr: 108.160.134.135 blowfish.buetow.org + <% for my $slave_ip (qw/108.160.134.135 46.23.94.99/) { %> + notify: <%= $slave_ip %> blowfish.buetow.org + provide-xfr: <%= $slave_ip %> blowfish.buetow.org + <% } -%> <% } %> diff --git a/frontends/var/nsd/zones/master/buetow.org.zone.tpl b/frontends/var/nsd/zones/master/buetow.org.zone.tpl index eb031fe..811cc8d 100644 --- a/frontends/var/nsd/zones/master/buetow.org.zone.tpl +++ b/frontends/var/nsd/zones/master/buetow.org.zone.tpl @@ -8,14 +8,17 @@ $TTL 4h 1h ) ; negative IN NS blowfish.buetow.org. IN NS twofish.buetow.org. + IN NS fishfinger.buetow.org. IN MX 10 blowfish.buetow.org. IN MX 20 twofish.buetow.org. + IN MX 30 fishfinger.buetow.org. 86400 IN A 23.88.35.144 86400 IN AAAA 2a01:4f8:c17:20f1::42 * IN MX 10 blowfish.buetow.org. * IN MX 20 twofish.buetow.org. +* IN MX 30 fishfinger.buetow.org. * 86400 IN A 23.88.35.144 * 86400 IN AAAA 2a01:4f8:c17:20f1::42 @@ -34,6 +37,14 @@ www.paul 3600 IN CNAME twofish www.tmp 3600 IN CNAME twofish www.dory 3600 IN CNAME twofish +fishfinger 86400 IN A 46.23.94.99 +fishfinger 86400 IN AAAA 2a03:6000:6f67:624::99 +git3 3600 IN CNAME fishfinger +ww3 3600 IN CNAME fishfinger +ww3.paul 3600 IN CNAME fishfinger +ww3.tmp 3600 IN CNAME fishfinger +ww3.dory 3600 IN CNAME fishfinger + vulcan 86400 IN A 95.216.174.192 vulcan 86400 IN AAAA 2a01:4f9:c010:250e::1 vu 86400 IN CNAME vulcan diff --git a/frontends/var/nsd/zones/master/foo.zone.zone.tpl b/frontends/var/nsd/zones/master/foo.zone.zone.tpl index 41bd5c5..0974333 100644 --- a/frontends/var/nsd/zones/master/foo.zone.zone.tpl +++ b/frontends/var/nsd/zones/master/foo.zone.zone.tpl @@ -16,3 +16,4 @@ $TTL 4h 300 IN AAAA 2a01:4f8:c17:20f1::42 * 300 IN CNAME blowfish.buetow.org. www 300 IN CNAME twofish.buetow.org. +codeberg 3600 IN CNAME snonux.codeberg.page. |
