[Pdns-users] API problem - domain name not conanical

jim at archer.net jim at archer.net
Tue Apr 4 01:26:04 UTC 2017


Hi All…

Using the API, and calling it with POST, when I call:

dns1.mydomain.com:8081/api/v1/servers/localhost/zones <http://dns1.registrationtek.com:8081/api/v1/servers/localhost/zones>


With this data:

{
    "name":"jimtestapi.com",
    "kind": "Master",
    "dnssec":false,
    "soa-edit":"INCEPTION-INCREMENT",
    "masters": [],
    "nameservers": ["dns1.mydomain.com"]
}

I get this error (422 - unknown status):

{
  "error": "DNS Name 'jimtestapi.com' is not canonical"
}

This was taken right from these examples:

https://n40lab.wordpress.com/2015/05/16/centos-7-using-the-powerdns-web-api-to-add-and-edit-records/ <https://n40lab.wordpress.com/2015/05/16/centos-7-using-the-powerdns-web-api-to-add-and-edit-records/>

Could this be a config issue on my pdns, perhaps relating to default SOA? I tried fiddling with those settings but no joy…


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20170403/57d0c0ba/attachment.html>


More information about the Pdns-users mailing list