News for hackers. Stuff that matters.
Re:Free DDNS with Cloudflare and a Cronjob by riobard on Sunday July 28, 2024 @11:09AM (#41093718)
There's one gotcha tho.

For Dynamic DNS you want minimal TTL, ideally less than 60 seconds, otherwise the DNS records will be cached and will not reflect the correct address during the short period of time window it changes.

Dedicated DDNS services usually have very short TTL (some offering as low as 5 seconds IIRC), but free Cloudflare accounts have a minimal TTL of 300 seconds (5 minutes), coupled with the crontab running every 5 minutes, your endpoint could be out of contact for 10 minutes if everything aligns right.

Re:Free DDNS with Cloudflare and a Cronjob by mclion on Sunday July 28, 2024 @11:23AM (#41093830)
Then run the cron every minute. As you can see with his example, it doesn't even run every 5 mins.

For unproxied records you can set the TTL to 1 minute as per their documentation..

And normally your IP would change only when reconnecting, so it's not a big deal...

Re:Free DDNS with Cloudflare and a Cronjob by dilyevsky on Sunday July 28, 2024 @11:55AM (#41094030)
Another issue is a lot of ISPs will ignore your TTL and cache it for hours or more on their internal resolvers