]> git.puffer.fish Git - matthieu/pve-network.git/commit
dns: powerdns: correctly handle different records types (A / AAAA)
authorMatthieu Pignolet <m@mpgn.dev>
Thu, 27 Feb 2025 09:02:27 +0000 (13:02 +0400)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Mar 2025 18:30:57 +0000 (19:30 +0100)
commit2fd0ad83d3cc043092d54d104cc5df40ad062b3a
tree5a8b68c545540f82d612e20b4ed051b5bcb31510
parenta77f0c21ca9b418e6e5bdbd46ba6974d02112702
dns: powerdns: correctly handle different records types (A / AAAA)

This fixes an issue with dual stacking, when using a zone with both a
IPv4 and IPv6 subnet and the same DNS suffix, pve-network will try to
set both DNS records (type A and AAAA) in the same powerdns rrset,
causing an API error, and effectively causing no forward DNS records
being created.

This change edits the `get_zone_rrset` function so that it takes the
DNS record type into account.

Signed-off-by: Matthieu Pignolet <m@mpgn.dev>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>
 [TL: wrap commit message]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm