[Pdns-users] using pdns auth API to create slave zones
Pieter Lexis
pieter.lexis at powerdns.com
Tue Jan 23 15:57:14 UTC 2018
Hi Thomas,
On Tue, 23 Jan 2018 16:46:25 +0100
Thomas Mieslinger <miesi at india.com> wrote:
> I'd like to use powerDNS 4.1 API to create a slave zone. Is it possible
> to send "type: SLAVE" and "master: 1.2.3.4" with the POST
> /servers/{server_id}/zones? How do I initiate a zone transfer from the
> master?
It seems that the documention[1] does not list you can POST a Zone
object to the endpoint like this:
{
"kind": "Slave",
"masters": ["192.0.2.1"],
"name": "example.com."
}
To AXFR retrieve, the docs[2] do show that you need to PUT to
/servers/{server_id}/zones/{zone_id}/axfr-retrieve.
Best regards,
Pieter
1 - https://doc.powerdns.com/authoritative/http-api/zone.html#zone
2 - https://doc.powerdns.com/authoritative/http-api/zone.html#put--servers-server_id-zones-zone_id-axfr-retrieve
--
Pieter Lexis
PowerDNS.COM BV -- https://www.powerdns.com
More information about the Pdns-users
mailing list