[Pdns-users] How to create new zone on the API?

frank+pdns at tembo.be frank+pdns at tembo.be
Fri Mar 15 16:34:52 UTC 2019


Hi Corey,

Please note the syntax is incorrect for recent versions of PowerDNS. 

When defining a zone, the records are passed using either the “zone” or the “rrsets” paramater. See https://docs.powerdns.com/authoritative/http-api/zone.html#objects <https://docs.powerdns.com/authoritative/http-api/zone.html#objects>



> On 15 Mar 2019, at 17:25, <corey at bitaccel.com <mailto:corey at bitaccel.com>> <corey at bitaccel.com <mailto:corey at bitaccel.com>> wrote:
> 
> "records": [
> { "content": "ns.example.net <http://ns.example.net/>. hostmaster.example.com <http://hostmaster.example.com/>. 1 1800 900 604800 86400", "disabled": false, "name": "example.net <http://example.net/>.", "ttl": 86400, "type": "SOA" }
> ,
> { "content": "192.168.1.42", "disabled": false, "name": "www.example.net <http://www.example.net/>.", "ttl": 3600, "type": "A" }
> ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20190315/03bdbd0f/attachment-0001.html>


More information about the Pdns-users mailing list