<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.error
{mso-style-name:error;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I’ve followed the documentation and created a call to the API but it doesn’t seem to create a new zone, it only creates NS and SOA records. Here is the snippet I tried –<o:p></o:p></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>POST <a href="http://104.255.99.99:8081/api/v1/servers/localhost/zones"><span style='color:#0052CC'>http://104.255.99.99:8081/api/v1/servers/localhost/zones</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white'>{"name":"2.255.255.255.in-addr.arpa.", "kind": "Native","dnssec":false,"masters": [], "serial": "2014060500", "nameservers": ["rdns1.bitaccel.com.", "rdns2.bitaccel.com."]}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white'><o:p> </o:p></span></p><p class=MsoNormal>I also tried <o:p></o:p></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>POST<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'><a href="http://104.255.99.99:8081/api/v1/servers/localhost/zones"><span style='color:#0052CC'>http://104.255.99.99:8081/api/v1/servers/localhost/zones</span></a><o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>{<br>"comments": [<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white'>{ "account": "JP", "content": "My first API-created zone", "name": "uhuh", "type": "dunno" }</span><span style='font-size:8.0pt'><o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>],<br>"kind": "Native",<br>"masters": [],<br>"name": "example.net.",<br>"nameservers": [<br>"ns1.example.net.",<br>"ns2.example.net."<br>],<br>"records": [<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white'>{ "content": "ns.example.net. hostmaster.example.com. 1 1800 900 604800 86400", "disabled": false, "name": "example.net.", "ttl": 86400, "type": "SOA" }</span><span style='font-size:8.0pt'><o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white'>{ "content": "192.168.1.42", "disabled": false, "name": "www.example.net.", "ttl": 3600, "type": "A" }</span><span style='font-size:8.0pt'><o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>]</span><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D'><br>}<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But it didn’t create the A records according to pdns web interface or dig it just created some SOA and NS records. (See dig below)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>dig www.example.net '@rdns1.bitaccel.com'<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.1 <<>> www.example.net @rdns1.bitaccel.com<br>;; global options: +cmd<br>;; Got answer:<br>;; opcode: QUERY, status: NXDOMAIN, id: 23148<br>;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0<br>;; WARNING: recursion requested but not available<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>;; QUESTION SECTION:<br>;www.example.net. IN A<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>;; AUTHORITY SECTION:<br>example.net. 3600 IN SOA a.misconfigured.powerdns.server. hostmaster.example.net. 2019031501 10800 3600 604800 3600<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>;; Query time: 1 msec<br>;; SERVER: 104.255.99.99#53(104.255.99.99)<br>;; WHEN: Fri Mar 15 01:17:28 2019<br>;; MSG SIZE rcvd: 111<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span class=error><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>[root@rdns1 rdns-scripts]</span></span><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'># dig example.net '@rdns1.bitaccel.com'<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.1 <<>> example.net @rdns1.bitaccel.com<br>;; global options: +cmd<br>;; Got answer:<br>;; opcode: QUERY, status: NOERROR, id: 32109<br>;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0<br>;; WARNING: recursion requested but not available<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>;; QUESTION SECTION:<br>;example.net. IN A<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>;; AUTHORITY SECTION:<br>example.net. 3600 IN SOA a.misconfigured.powerdns.server. hostmaster.example.net. 2019031501 10800 3600 604800 3600<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'>;; Query time: 1 msec<br>;; SERVER: 104.255.99.99#53(104.255.99.99)<br>;; WHEN: Fri Mar 15 01:17:37 2019<br>;; MSG SIZE rcvd: 107<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D'><o:p> </o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;background:white'>Anyone have any ideas what I could be doing wrong?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>