diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-29 09:13:09 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-29 09:13:09 +0200 |
| commit | 00e6ee6d0a1e6f293f4bde86047f3a35870c31c6 (patch) | |
| tree | c11f29afc6e0c5f1480b47a4671761fa50907d61 | |
| parent | c23537c8a55c101588d13de5e965b056b5012a4f (diff) | |
Fix pattern to match ipv4/ipv6 anywhere in hostname
Amp-Thread-ID: https://ampcode.com/threads/T-019c086d-c760-779d-b740-0f748094b62a
Co-authored-by: Amp <amp@ampcode.com>
| -rw-r--r-- | frontends/var/nsd/zones/master/buetow.org.zone.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/var/nsd/zones/master/buetow.org.zone.tpl b/frontends/var/nsd/zones/master/buetow.org.zone.tpl index 03dabb1..33e0621 100644 --- a/frontends/var/nsd/zones/master/buetow.org.zone.tpl +++ b/frontends/var/nsd/zones/master/buetow.org.zone.tpl @@ -55,8 +55,8 @@ standby.tmp 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover standby.tmp 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover <% for my $host (@$f3s_hosts) { - my $is_ipv6_only = $host =~ /^ipv6\./; - my $is_ipv4_only = $host =~ /^ipv4\./; + my $is_ipv6_only = $host =~ /ipv6\./; + my $is_ipv4_only = $host =~ /ipv4\./; -%> <% unless ($is_ipv6_only) { -%> <%= $host %>. 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover |
