erldns_admin_zone_handler (erldns v10.5.3)
View SourceSupport 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 parametermetaonly, that takes a boolean: if set totrueonly 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" }, ... ] } } }