erldns_admin_zone_handler (erldns v10.5.4)

View Source

Support for the erldns Admin API root resource at path /zones/:name.

The following is implemented:

  • DELETE: Deletes a zone from cache.

  • GET: Returns information about records in a given zone cached in erldns. Acceps an optional query parameter metaonly, that takes a boolean: if set to true only zone metadata is returned, without the actual "records".

    The response JSON body looks like the following:

      {
        "erldns": {
          "zone": {
            "name": "example.com",
            "version": "v1.2.3",
            "records_count": 11,
            "records": [
              {
                "name": "example.com.",
                "type": "A",
                "ttl": 3600,
                "content": "1.2.3.4"
              },
              {
                "name": "example.com.",
                "type": "AAAA",
                "ttl": 3600,
                "content": "2001:6A8:0:1:210:4BFF:FE4B:4C61"
              },
              ...
            ]
          }
        }
      }