That's not unique to SRV records, it's how all record types work in PowerDNS Auth. When you send an API request to modify the RRset, you are supplying the entire RRset; there is no ability to add or delete individual records in the RRset.
If you want to make adjustments to the RRset contents, use the API to obtain the current set, make your changes, and then send the changed set to the API. On Wed, Apr 14, 2021 at 9:49 AM Larry Wapnitsky <la...@wapnitsky.com> wrote: > > Just figured that out. Also learned that SRV records are not great to update > like this, as all my records just disappeared and were replaced with one. > > Larry G. Wapnitsky > > E: la...@wapnitsky.com > Web: Larry.Wapnitsky.com > Twitter: @LGWapnitsky > > > > > > > On Wed, Apr 14, 2021 at 9:49 AM Kevin P. Fleming <ke...@km6g.us> wrote: >> >> The error message is correct; canonical DNS names end with '.', and >> the one you supplied does not. >> >> On Wed, Apr 14, 2021 at 9:44 AM Larry Wapnitsky via Pdns-users >> <pdns-users@mailman.powerdns.com> wrote: >> > >> > 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: la...@wapnitsky.com >> > Web: Larry.Wapnitsky.com >> > Twitter: @LGWapnitsky >> > >> > >> > >> > >> > _______________________________________________ >> > Pdns-users mailing list >> > Pdns-users@mailman.powerdns.com >> > https://mailman.powerdns.com/mailman/listinfo/pdns-users _______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/pdns-users