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…


_______________________________________________
Pdns-users mailing list
[email protected]
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to