<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Add a dot at the end.<br>
</p>
Aki<br>
<br>
<div class="moz-cite-prefix">On 04.04.2017 04:26, <a class="moz-txt-link-abbreviated" href="mailto:jim@archer.net">jim@archer.net</a>
wrote:<br>
</div>
<blockquote
cite="mid:8C8D086D-60B1-48B0-8ADD-6F23C6104DF8@archer.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi All…
<div class=""><br class="">
</div>
<div class="">Using the API, and calling it with POST, when I
call:</div>
<div class=""><br class="">
</div>
<div class=""><span style="color: rgb(80, 80, 80); font-family: OpenSans, Helvetica, Arial, sans-serif; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(250, 250, 250);" class=""><a moz-do-not-send="true" href="http://dns1.registrationtek.com:8081/api/v1/servers/localhost/zones" class="">dns1.mydomain.com:8081/api/v1/servers/localhost/zones</a></span></div>
<div class=""><span style="color: rgb(80, 80, 80); font-family: OpenSans, Helvetica, Arial, sans-serif; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(250, 250, 250);" class="">
</span></div>
<div class=""><br class="">
</div>
<div class="">With this data:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">{</div>
<div class=""> "name":"<a moz-do-not-send="true"
href="http://jimtestapi.com" class="">jimtestapi.com</a>",</div>
<div class=""> "kind": "Master",</div>
<div class=""> "dnssec":false,</div>
<div class=""> "soa-edit":"INCEPTION-INCREMENT",</div>
<div class=""> "masters": [],</div>
<div class=""> "nameservers": ["<a moz-do-not-send="true"
href="http://dns1.mydomain.com" class="">dns1.mydomain.com</a>"]</div>
<div class="">}</div>
</div>
<div class=""><br class="">
</div>
<div class="">I get this error (422 - unknown status):</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">{</div>
<div class=""> "error": "DNS Name '<a moz-do-not-send="true"
href="http://jimtestapi.com" class="">jimtestapi.com</a>' is
not canonical"</div>
<div class="">}</div>
</div>
<div class=""><br class="">
</div>
<div class="">This was taken right from these examples:</div>
<div class=""><br class="">
</div>
<div class=""><a moz-do-not-send="true"
href="https://n40lab.wordpress.com/2015/05/16/centos-7-using-the-powerdns-web-api-to-add-and-edit-records/"
class="">https://n40lab.wordpress.com/2015/05/16/centos-7-using-the-powerdns-web-api-to-add-and-edit-records/</a></div>
<div class=""><br class="">
</div>
<div class="">Could this be a config issue on my pdns, perhaps
relating to default SOA? I tried fiddling with those settings
but no joy…</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pdns-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a>
<a class="moz-txt-link-freetext" href="https://mailman.powerdns.com/mailman/listinfo/pdns-users">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a>
</pre>
</blockquote>
<br>
</body>
</html>