Skip to content

Issue with endpoints in current API documentation #17834

Description

@sanguiano1227
  • Program: Authoritative
  • Issue type: Bug report

Short description

I need to walkthrough all my zones and see if the zone's SOA record has a specific primary nameserver. I have tried two different curls and haven't had much success.

First curl was using the GET /servers/{server_id}/zones which states it would give me all the zones with RRSets. This seems to not be accurate in the documentation because it does not provide that.

Second curl was a result of the first not working. I am having to curl each zone and check the soa rrset. I tried using the query parameters provided: GET /servers/{server_id}/zones/{zone_id}?rrset_name=<zone_name>&rrset_type=SOA . This command does not filter for specifically the SOA, it gives me all that are matching the zone name but that included NS and A records at the apex.

Environment

  • Operating system: Enterprise Linux (RHEL and derivatives) 9
  • Software version: 5.1 authoritative
  • Software source: PowerDNS repository

Steps to reproduce

  1. Load zones into Authoritative PowerDNS 51 (or 5.1)
  2. Attempt the CURL commands above

Expected behaviour

Curl 1: rrsets to be included
Curl 2: Filter by name and type

Actual behaviour

Curl 1: rrsets not included
Curl 2: filter by name but not by type

Other information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions