]> git.proxmox.com Git - pve-network.git/commitdiff
fix #5275: remove priority field from powerdns
authorStefan Hanreich <s.hanreich@proxmox.com>
Mon, 4 Mar 2024 14:11:28 +0000 (15:11 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Mar 2024 14:47:57 +0000 (15:47 +0100)
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 <s.hanreich@proxmox.com>
src/PVE/Network/SDN/Dns/PowerdnsPlugin.pm

index 096d131d263e04579623463fb7402daadbd99ffe..556412051381c250bc7b106c809cc98fbb65d34c 100644 (file)
@@ -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,