mastodon.me.uk is one of the many independent Mastodon servers you can use to participate in the fediverse.
Open, user-supported, corporation-free social media for the UK.

Administered by:

Server stats:

547
active users

Jonathan B ✈️🪄👨🏻‍💻

Moving my dynamic DNS for my home broadband to @beasts account as it had stopped working on Dreamhost. After starting to write a python script like I was using before, I realised that a simple .netrc file with API credentials and one curl command in a crontab was all I actually needed! Simples!

@beasts Is an hourly ping ok? Should I be checking locally if the IP has changed first?

@jmb hourly should be fine. You can check your IPv4|6 first with

dig -4 TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'

dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'

@jmb actually, you're welcome to just hit the API endpoint every hour, although please choose some random number of minutes after the hour to spread the load. The IP detection is intended to save you the hassle of figuring out what it is and whether it's changed or not.

@beasts Thanks, that’s what I’m doing! It’s a brilliantly simple solution.