I have a little server sitting at my home which I need access to from the outside of my home network. Unfortunately my provider doesn’t offer fixed IPs which is why my home IP changes every once in a while. Currently I am using no-ip.com to update a dynamic domain with the servers IP adress everytime it changes.
Now I would like to use Bytemark’s DNS servers to create a subdomain (home.mydomain.com) pointing to my home server and was wondering would be the best way to approach this. I know that I can only run tinydns’s upload script as root on the bytemark server. So it seems that the only way to dynamically update my records is to
- ssh as root into my bytemark server, which means I have to generate and copy over my ssh keys so the home server can login being prompted for the password
- once logged in edit the
BytemarkDNS/data/mydomain.txtfile, find the alias and update it with the new domain
Of course I would create a script for this so I can have a cronjob that runs
ssh email@example.com 'update.sh <newip>' from my home server everytime the IP changes.
Is this the way to go or is there a better solution that I am missing?