I am using the update api and I am trying to update a zone’s ipv6-address and ipv6-prefix independently from each other.
The docs say about the query parameters:
- ipv6= […] If it includes a prefix length like /64 and you omit the ipv6prefix parameter, then your prefix will be updated as well.
- ipv6prefix= […] If empty or unset, the current IPv6 prefix is kept unchanged.
So I am doing these two requests:
curl "http://ipv6.dynv6.com/api/update?zone=myzone.dynv6.net&ipv6prefix=1234:5678::/16&token=<bla>"; curl "http://ipv6.dynv6.com/api/update?zone=myzone.dynv6.net&ipv6=2345::6789&token=<bla>";
Since those two requests come from different machines far apart from each other, both requests occur in random order, but the order above is the one that fails for me.
According to the docs the first request only updates the ipv6prefix - which it does indeed.
The second request should only be updating the ipv6-address without updating the ipv6prefix even though the ipv6prefix is unset, because the ipv6-address doesn’t contain a prefix length. Unfortunately it does update the ipv6prefix as well.
I tried different things like setting ipv6prefix="", so it is defined, but empty, or tried adding a prefix length of /128 or /0 to the ipv6 query parameter, but no matter what I tried, I was never able to update the ipv6-address only without touching the ipv6prefix.
What am I doing wrong? How can I set the ipv6-address only without changing the ipv6prefix when using the Update API?