[Pdns-users] Unable to edit domainmetadata with API

Frank Louwers frank+pdns at tembo.be
Fri Jun 30 12:07:05 UTC 2023


Hi Shailendra,

This is documented behaviour: https://doc.powerdns.com/authoritative/domainmetadata.html states:

The option SOA-EDIT-API can not be written or read via the HTTP API metadata endpoint.



Cheers,

Frank



Frank Louwers
PowerDNS Certified Consultant @ Kiwazo.be

> On 30 Jun 2023, at 13:55, Shailendra Gautam via Pdns-users <pdns-users at mailman.powerdns.com> wrote:
> 
> Hi, 
> 
> I'd like to edit the domain metadata SOA-EDIT-API to EPOCH but the API doesn't allow it, however I can edit SOA-EDIT kind. Is that a bug?
> 
> [root at sgpowerdns /]# curl -X GET http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata
> [{"kind": "SOA-EDIT", "metadata": ["EPOCH"], "type": "Metadata"}, {"kind": "SOA-EDIT-API", "metadata": ["DEFAULT"], "type": "Metadata"}]
> [root at sgpowerdns /]#
> [root at sgpowerdns /]# curl -X GET http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT
> {"kind": "SOA-EDIT", "metadata": ["EPOCH"], "type": "Metadata"}
> [root at sgpowerdns /]#
> [root at sgpowerdns /]# curl -X GET http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT-API
> {"error": "Unsupported metadata kind 'SOA-EDIT-API'"}
> [root at sgpowerdns /]#
> 
> --
> Thanks,
> SG
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230630/fa6d2ce7/attachment.htm>


More information about the Pdns-users mailing list