[Pdns-users] record creation issue

Larry Wapnitsky larry at wapnitsky.com
Wed Apr 14 13:43:50 UTC 2021


I'm trying to use CURL to create records in a script, but am running into
the following error:

curl -X PATCH -H 'content-type: application\json' -H 'x-api-key: changeme'
-d '{
"rrsets": [
{
"name": "_node_exporter.wapnet.local.lan",
"type": "SRV",
"ttl": 86400,
"changetype": "REPLACE",
"records": [
{
"content": "0 10 9100 ns1.wapnet.local.lan",
"disabled": false
}
]
}
]
}' http://10.150.33.5:8081/api/v1/servers/localhost/zones/wapnet.local.lan.
{"error": "DNS Name '*_node_exporter.wapnet.local.lan' is not canonical*"}

This is occurring on any type of record I create.

Advice is welcome

*Larry G. Wapnitsky*


*E: Larry at Wapnitsky.com*
*Web: Larry.Wapnitsky.com <http://larry.wapnitsky.com/>Twitter:
@LGWapnitsky*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20210414/999738c8/attachment.htm>


More information about the Pdns-users mailing list