Posts

Showing posts from November, 2024

Dynamically Update DNS When Your Server IP Address Changes

I've been running my website on a Raspberry Pi in my home for years. Whenever my router got restarted, my home would have a new external IP address, and so I needed to find out that IP address, then log into the registrar I use and update the IP address to direct my domain name to my website server. My website didn't really need to be live most of the time, so it didn't bother me occasionally changing the IP address. Recently, I was thinking it must be possible to automate logging into my account and changing the IP address. So I looked up to see if someone had already made a solution, and it turns out there is a standard one. It's called dynamic DNS. Make sure your domain registrar supports dynamic DNS. You can move your domain to another registrar if not. Install ddclient on the server. This is one of several options of software which performs dynamic DNS updates to domain providers. It may not support all registrars. Configure your domain in your registrar to use a ...