There are plenty of reliable, free DDNS providers like <a href="https://dns.he.net" rel="nofollow">https://dns.he.net</a> that do not require rolling your own or hardcoding your global API key into a script on a questionably trustable single board computer.