Update DNS records for your home server

Here’s a plain and simple script to update your DNS records, that you could add to your cron job so that your home server will be always accessible from outside.

Just place in /etc/cron.hourly and add executable flag to the file:

chmod a+x /etc/cron.hourly/update-dns