Re: PowerDNS API rrset_name and rrset_type options
Bill G via Pdns-users <[email protected]>
| Newsgroups | gmane.network.dns.powerdns.user |
|---|---|
| Message-ID | <q4uA7Cb1zaK5_n18Y4XTRFGCm2haFyiM9AR3pRq66gYgYFLASzTwrgAaz9Dz_9__AWG08BKlqaPPc7mj5Smdrg3OqlaJnUU3N443BHCbRvk=@proton.me> |
Hello Peter, It is returning comments in addition to the correct RR, so I guess I just ran into the already reported bug :-) Thank you! On Tuesday, June 18th, 2024 at 2:14 PM, Peter van Dijk via Pdns-users <[email protected]> wrote: > Hello, > > On Tue, 2024-06-18 at 09:48 +0000, Bill G via Pdns-users wrote: > > > When I call the PowerDNS API on a subzone on /servers/{server_id}/zones/{zone_id} with the rrset_name and rrset_type options, it still returns all RRs. I would expect it to only return the RR that match the name and type. The other RRs that are returned don't have a content value, but they are still returned in the rrsets list. > > > > I call the API like this: > > curl -X GET -H "X-API-Key: 123456" "http://localhost/api/v1/servers/localhost/zones/dkim.example.com.?rrset_name=bounces1.dkim.example.com.&rrset_type=TXT" > > > > Is this expected behavior? > > > If the extra RRsets have comments, this is a known bug, tracked at > https://github.com/PowerDNS/pdns/pull/14045 which contains an > (unfinished) patch. > > If it's something else, please show us what you are seeing. In fact, I'd > love to see what you're seeing in any case. > > Kind regards, > -- > Peter van Dijk > PowerDNS.com B.V. - https://www.powerdns.com/ > _______________________________________________ > Pdns-users mailing list > [email protected] > https://mailman.powerdns.com/mailman/listinfo/pdns-users