From 244fb03d3a3cdaeff52c4255d5173c82b07a633e Mon Sep 17 00:00:00 2001 From: Stefan Hanreich Date: Mon, 4 Mar 2024 15:11:28 +0100 Subject: [PATCH] fix #5275: remove priority field from powerdns Since v3.4.2 the priority field has been removed and since v4.9 they are actively rejected by PowerDNS. Stop sending this field in order to make the PowerDNS plugin work with versions >= 4.9 again. [1] [1] https://doc.powerdns.com/authoritative/upgrading.html#api-changes Signed-off-by: Stefan Hanreich --- src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm b/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm index 096d131..5564120 100644 --- a/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm +++ b/src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm @@ -69,8 +69,7 @@ sub add_a_record { my $record = { content => $ip, disabled => JSON::false, name => $fqdn, - type => $type, - priority => 0 }; + type => $type }; push @$final_records, $record; @@ -108,8 +107,7 @@ sub add_ptr_record { my $record = { content => $hostname, disabled => JSON::false, name => $reverseip, - type => $type, - priority => 0 }; + type => $type }; my $rrset = { name => $reverseip, type => $type, -- 2.39.5