2
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
1&1 should provide you with a way of pointing the domain to your server. This is normally done throu an DNS-Server. Most of the time you can just listen for external ip changes and then update the DNS via script – BlueWizard – 2016-12-12T13:50:48.743
As I said, from my understanding 1&1 updates the changes on the domain name system on the entire Internet, which they say can take up to 48 hours, see https://help.1and1.com/domains-c36931/manage-domains-c79822/dns-c37586/change-your-domain-s-ip-address-a-record-a599296.html but I need IP changes to affect in at most minutes. Also they say If your domain is assigned with one of the 1&1 Control Panel tools, you should be able to determine which tool the domain is assigned to by the Domain Overview page. I have not yet tried their tools out but I expect this to bring some new problems...
– DBRN – 2016-12-12T14:11:14.690