[Pdns-users] API problem - domain name not conanical
Aki Tuomi
cmouse at cmouse.fi
Tue Apr 4 06:35:21 UTC 2017
Add a dot at the end.
Aki
On 04.04.2017 04:26, jim at archer.net wrote:
> 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 <http://jimtestapi.com>",
> "kind": "Master",
> "dnssec":false,
> "soa-edit":"INCEPTION-INCREMENT",
> "masters": [],
> "nameservers": ["dns1.mydomain.com <http://dns1.mydomain.com>"]
> }
>
> I get this error (422 - unknown status):
>
> {
> "error": "DNS Name 'jimtestapi.com <http://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/
>
> 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
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20170404/4dccc471/attachment.html>
More information about the Pdns-users
mailing list