SDN + PowerDNS, Proxmox not changing DNS entries

mnrode

New Member
Jul 1, 2024
1
0
1
I have a single Proxmox Node, running v8.2.4, running on a Hetzner server. On it, I have set up Powerdns + Recursor, which I have connected to my single SDN.

Using the pdnsutil, I can see that it creates the A records in my main zone and the PTR records in the 10.in-addr.arpa zone after creating/starting a new CT, as expected.
But if I change the IP in the IPAM tab, the PTR record is removed, no new PTR records has been created and the A records has not been changed.

Changing the ip within the proxmox IPAM interface calls PATCH /api2/extjs/cluster/sdn/vnets/vnet0/ips.I get no warnings/errors in /var/log/pveproxy/access.log surrounding that call.

Looking at the powerdns port with wireshark, I can only see the call deleting the PTR record and some GETs to /zones/$domain?rrsets=false and /zone/10.in-addr.arpa?rrsets=false (from verify_zone in PowerdnsPlugin.pm, I assume), but nothing deleting the A record or creating new ones.

Looking at Ips.pm in the pve-network source code, Vnets::del_ip should be called first, calling Subnets::del_ip next.
In Subnets::del_ip, I can see the calls to verify_zone.
After that, del_dns_record should be called before del_dns_ptr_record, calling del_a_record in PowerdnsPlugin.pm, but I am not seeing a GET /zones/$domain (without rrsets=false) in Wireshark from get_zone_content, which should be called near the beginning of del_a_record.
I am not sure how get_zone_content could be skipped, while the deletion of the PTR still happens.

As you can see, I am a bit stumped. I would apreciate any help debugging the issue.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!