Hacker News new | ask | show | jobs
by w1 2244 days ago
Lol I may or may not currently be using a Twitter account and cron to broadcast any changes to my (non-static) home ip address, encrypted, so I can ssh into my workstation when I'm on vacation.
4 comments

Cloudflare's API supports this for free; my Ubiquiti router updates my DNS records when/if something changes. But I love your hack :)
Which Ubiquiti router are you using for home use?

A friend of mine convinced me to get us a Fortinet appliance at home - it’s good, I can’t deny - but integration with th rest of our Ubiquiti kit would be nice.

Are dynamic DNS services no longer a thing?
Yep, free dynamic DNS still exists, for example NoIP https://www.noip.com/ However, you have to refresh it each month by filling out a "I'm still using it" web form they email you. So, you can't just set it & forget it.
I use Namecheap, but other providers offer it as well: free dyndns service with a domain - no monthly checkin required.
Wait Namecheap has dyndns service as well? Nice, I shall check into this! I have a few domains with them. Thanks :)
https://freedns.afraid.org/

Works in the free tier as set and forget. As long as you keep updating it (with whatever API), it works. Filling out a form manually makes NoIP sound like a horrible service.

I use Now-DNS.com and you don't have to check in with them.
it really isn't that hard to set up dynamic dns yourself. like maybe a day of work. just don't forget to upgrade your dns server software when exploits are discovered
Running your own DNS server (if that's what you're suggesting) just for dynamic DNS is extremely unnecessary. Not to mention the case of someone who doesn't have another server with a static IP to host the DNS on.

All but the worst of the worst providers have an API of some sort and if you're savvy enough to set up BIND, you can handle writing a curl command to post your IP to the API and sticking it into cron.

It looks like they are, thanks! This is just what I could hack together before I went on Christmas break a couple years back lol.
They've been around for well over a decade.
Some home routers even have a feature to keep your IP address updated with the DDNS service.
The big one is gone, but I have good integration between my Asus router and Google domains.
Seems like a strange way to achieve this. Why not just have it send you an email? Or update a DNS record through an API?
I did first try to setup email, but I couldn't figure out how to do that without providing a static ip address. This was a "what can I make work in the two hours before we drive across the country" solution lol.
inadyn works well and supports a bunch of services (it’s been around since 2003 at least..).

https://github.com/troglobit/inadyn

A lot of domain registrars offer dynamic DNS for free using the original protocol or variants supported by inadyn. I’ve been using domains.google for the past 5 years and been pretty happy with it.