Dynamic DNS Update

I am trying to run this with scripting. It works fine on Raspberry Pi with Bash.

/usr/bin/curl -6 "https://test.xyzdomaintest.com:password@dyn.dns.he.net/nic/update?hostname=test.xyzdomaintest.com"

Simply calling the URL will update the dynamic DNS. I need to do it over IPv6 though. Any idea how?

I see this but it does not address IPv6.
https://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_Hurricane_Electric_DNS

In the end using this worked.

https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch

/tool fetch url="https://test.xyzdomaintest.com:password@ipv6.dyn.dns.he.net/nic/update?hostname=test.xyzdomaintest.com" keep-result=no

Had to add ipv6 to domain. Would be nice to have an option with fetch to prefer/demand ipv6.