diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-17 19:12:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-17 19:12:44 +0200 |
| commit | 9948823497abb1f687ec875adf8b4be677e44ee3 (patch) | |
| tree | 60a620159e90880f25fc2c6e6969a6558abd04bb /frontends/var | |
| parent | 8f5a0c72b9e5ff76e1271dbecbd47c03a23a91ea (diff) | |
use multi-master nsd setup, for automatic DNS failovers in the future.
Diffstat (limited to 'frontends/var')
| -rw-r--r-- | frontends/var/nsd/etc/nsd.conf.master.tpl | 4 | ||||
| -rw-r--r-- | frontends/var/nsd/zones/master/foo.zone.zone.tpl | 8 | ||||
| -rw-r--r-- | frontends/var/nsd/zones/master/snonux.foo.zone.tpl | 10 |
3 files changed, 10 insertions, 12 deletions
diff --git a/frontends/var/nsd/etc/nsd.conf.master.tpl b/frontends/var/nsd/etc/nsd.conf.master.tpl index cf1c311..7f5ba56 100644 --- a/frontends/var/nsd/etc/nsd.conf.master.tpl +++ b/frontends/var/nsd/etc/nsd.conf.master.tpl @@ -14,8 +14,4 @@ remote-control: zone: name: "<%= $zone %>" zonefile: "master/<%= $zone %>.zone" - <% 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/foo.zone.zone.tpl b/frontends/var/nsd/zones/master/foo.zone.zone.tpl index 173bbd1..8b32144 100644 --- a/frontends/var/nsd/zones/master/foo.zone.zone.tpl +++ b/frontends/var/nsd/zones/master/foo.zone.zone.tpl @@ -12,7 +12,7 @@ $TTL 4h IN MX 10 fishfinger.buetow.org. IN MX 20 blowfish.buetow.org. - 1800 IN A <%= $ips->{current_master}{ipv4} %> - 1800 IN AAAA <%= $ips->{current_master}{ipv6} %> -* 1800 IN CNAME <%= $ips->{current_master}{fqdn} %>. -mirror 1800 IN CNAME <%= $ips->{current_standby}{fqdn} %>. + 1800 IN A <%= $ips->{current_master}{ipv4} %> ; Enable master failover + 1800 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable master failover +* 1800 IN CNAME <%= $ips->{current_master}{fqdn} %>. ; Enable standby failover +mirror 1800 IN CNAME <%= $ips->{current_standby}{fqdn} %>. ; Enable standby failover diff --git a/frontends/var/nsd/zones/master/snonux.foo.zone.tpl b/frontends/var/nsd/zones/master/snonux.foo.zone.tpl index e765cbe..7a316ac 100644 --- a/frontends/var/nsd/zones/master/snonux.foo.zone.tpl +++ b/frontends/var/nsd/zones/master/snonux.foo.zone.tpl @@ -12,7 +12,9 @@ $TTL 4h IN MX 10 fishfinger.buetow.org. IN MX 20 blowfish.buetow.org. - 1800 IN A <%= $ips->{current_master}{ipv4} %> - 1800 IN AAAA <%= $ips->{current_master}{ipv6} %> -* 1800 IN CNAME <%= $ips->{current_master}{fqdn} %>. -mirror 1800 IN CNAME <%= $ips->{current_standby}{fqdn} %>. + 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover + 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover +www 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover +www 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover +mirror 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover +mirror 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover |
