This is my first time setting up a home server so sorry for missing things that might be obvious to you. I have bought a 1€ domain on 1&1 and I would like to have it pointing to my home server. I was wondering, what are the ways of dealing with the problem of being assigned a dynamic IP by your ISP?
Buying a static IP for 15€ a month (out of question, I am a college student and the server is not for business but for learning purposes)
Write your own script to update what IP 1&1 points your domain to - this is free, but not only will the script be not usable if they change anything in the interface, but you will also have to wait up to 48 hours for the changes to be propagated every time because 1&1 basically has to tell all the DNS servers on the internet to point to my new IP (right?)
Forwarding my domain to a nameserver from services like dyndns or noip.com (which I assume provide you with a notify-change-script)? They propagate changes instantly (because all the DNS-servers on the internet now point to their server and so only the forwarding-configuration on their server has to be changed), but their service costs money (right?)
https://discourse.osmc.tv/t/howto-free-tk-domain-name-that-always-points-to-your-pi/14083 Then I also found this tutorial/script, for forwarding my domain to cloudflare in order to use an own script/worker for the IP-status update (and otherwise being the same solution as with noip.com). It seems to be written for Raspbian, but I think it should work with an Ubuntu Docker container too.... This is a free solution, but as soon as cloudflare changes the interface the script won't work anymore.
Are there any other solutions I am missing?
I should mention, I need to utilize both https:// for serving web-pages and wss:// (secure websocket) for a worker. So whatever the solution, it should include having to pay no extra money for TLS certificates.
[EDIT] This post helped me immensely in understanding why services like Cloudflare or DynDNS exist in the first place if you can change the forwarded IP at 1&1 itself: How does DynamicDNS act immediately? For similar solutions free of charge you can also look into DuckDNS and Afraid.org