Live data from Hacker News

Free DDNS with Cloudflare and a cronjob

github.com

171–180 of 202 posts

Re: Free DDNS with Cloudflare and a cronjob

#171

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…

Another issue is a lot of ISPs will ignore your TTL and cache it for hours or more on their internal resolvers

Re: Free DDNS with Cloudflare and a cronjob

#172
Huh, I ignored this article because it sounded like such a solved problem, but it stayed on the home page long enough that I thought I might be missing something.

Not only was it exactly what I expected from the title, there were 3 obvious but unimportant flaws in the "Ubuntu/Debian" setup section:

- a cron line that runs every 60 minutes is commented as running every 5

- unnecessary crond restart. Not just reload, which would already be redundant, but a full restart

- unnecessarily restrictive heading. There's nothing specific to Ubuntu/Debian in those instructions

I mean, it's a fine solution, like the 100s of others out there. I'm not trying to throw shade on the author; they've made something a little more flexible than most one-offs, without going overboard like the ones that handle dozens of different services. But... why the front page? Why the upvotes? Can't you kids just stay off of the damn lawn?!

Re: Free DDNS with Cloudflare and a cronjob

#173
post #172

Huh, I ignored this article because it sounded like such a solved problem, but it stayed on the home page long enough that I thought I might be missing something. Not only was it exactly what I expected from the title, there were 3 obvious but unimportant flaws in the "Ubuntu/Debian" setup section: - a cron line that runs every 60 minutes is commented as running every 5 - unnecessary crond restart. Not just reload, w…

I created an account just to comment on this: I tell you something, you are "throwing shade" on the author - even if this is a "kid", were you born and immediately started to invent (insert complex tech) from scratch? This guy did a nice job and wanted to share his work with us and appearently many others appreciate it and thus it ended up on the front page. Comments which's only intention is to make some other's work smaller and seemingly "unworthy" are just sad and unnecessary.

Re: Free DDNS with Cloudflare and a cronjob

#174
post #170
post #154

Earlier quoted context omitted.

What do you mean? Every device gets a public ipv6 (usually).

I have a router connected to the internet, it gets the public IP address. The router is connected to the internal network in my home and has the IP address of 192.168.1.1. Behind the router is my computer which has a non-public IP address, for example 192.168.1.2. My computer is the one I want to run the program to update the DNS entry. My computer does not know what the public IP address is by looking at its interfa…

We're talking ipv6 not ipv4

Re: Free DDNS with Cloudflare and a cronjob

#175
Noip isn't free?

I have 3 domains there for years and I haven't paid them once.

Some time ago they started requiring that I mark the domains active each month. I wrote a script that intercepts that email and logs into their site to reup the domains. Recently that script broke and I haven't bothered to fix it because logging in once a month is a nothing burger.

Re: Free DDNS with Cloudflare and a cronjob

#176

If you too are tired of relying on outdated software from paid services like NoIP and DynDNS, and are in need for a reliable way to manage your home server with your own domain name, try this simple script with a free Cloudflare account. It just gets the job done...

> restart cronjobs > > sudo systemctl restart cron Hello author, there's no need to restart cron, crontab -e applies changes automatically on exit. And the daemon is called "cron", not "cronjobs".

Hello back! thanks I did not know crontab -e auto-restarted it. fixing it now. also 'cronjobs'.

Re: Free DDNS with Cloudflare and a cronjob

#177

"Yeah, but"; do I want to be putting up impossible-to-solve captcha loops in people's faces? Can you do this in a way that people who know your domain can go directly to your actual IP address, rather than a Cloudfare proxy?

If you set {proxied: false} - it'll resolve to your IP directly.

Re: Free DDNS with Cloudflare and a cronjob

#179

Weird, this project is very similar to this one https://github.com/zackoch/easy_cloudflare_dns_updater/tree/... Did OP kang my project?

Haha, no, I didn’t! Honestly, I didn't put much thought into this project either. I needed it for myself to host a game we're developing (it’s 11GB per download) and was frustrated with the Noip client. I made this in about an hour and thought I’d share it too! Just seeing all the upvotes today :)

Re: Free DDNS with Cloudflare and a cronjob

#180
post #173
post #172

Huh, I ignored this article because it sounded like such a solved problem, but it stayed on the home page long enough that I thought I might be missing something. Not only was it exactly what I expected from the title, there were 3 obvious but unimportant flaws in the "Ubuntu/Debian" setup section: - a cron line that runs every 60 minutes is commented as running every 5 - unnecessary crond restart. Not just reload, w…

I created an account just to comment on this: I tell you something, you are "throwing shade" on the author - even if this is a "kid", were you born and immediately started to invent (insert complex tech) from scratch? This guy did a nice job and wanted to share his work with us and appearently many others appreciate it and thus it ended up on the front page. Comments which's only intention is to make some other's wor…

Hey Tobi, thank you! This is HN, so that is fully expected, but it’s all fun and good. I made this super quickly and just wanted to share in case anyone needed it. I only saw it today—reached the front page and got 444 stars! I’m as surprised as the shade guy :)
Post reply on HN