summaryrefslogtreecommitdiff
path: root/frontends/var/nsd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-29 09:18:48 +0200
committerPaul Buetow <paul@buetow.org>2026-01-29 09:18:48 +0200
commitafa79f867f3fdb68a5cdd893f36dc98ca44c91d7 (patch)
treef7714691c0231e890acb64372132b89b26e8e687 /frontends/var/nsd
parent00e6ee6d0a1e6f293f4bde86047f3a35870c31c6 (diff)
Smart A/AAAA record generation for ipv4/ipv6 only hosts
Amp-Thread-ID: https://ampcode.com/threads/T-019c086d-c760-779d-b740-0f748094b62a Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'frontends/var/nsd')
-rw-r--r--frontends/var/nsd/zones/master/buetow.org.zone.tpl4
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 33e0621..03dabb1 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