News for hackers. Stuff that matters.
Re:I wish my web server were in the corner of my room (2022) by hnuser123456 on Monday September 15, 2025 @07:55PM (#45256384)
Yep, my website (very WIP) is hosted on an RPi 5 in the corner of my apartment, and every once in a while my IP changes and I have to update DNS and tell my friends to connect to the minecraft server by IP. I'm probably around 98% uptime, so github levels of assurance.
Re:I wish my web server were in the corner of my room (2022) by mmaurizi on Monday September 15, 2025 @08:09PM (#45256500)
Why not use DDNS?
Re:I wish my web server were in the corner of my room (2022) by mysteria on Monday September 15, 2025 @08:19PM (#45256560)
Alternatively your domain provider likely has some API for you to programmatically update the DNS records.
Re:I wish my web server were in the corner of my room (2022) by ffsm8 on Tuesday September 16, 2025 @05:56AM (#45260169)
Because mine didn't I instead used a generic ddns and set a cname on my own domain to that. Works like a charm too.

Kinda breaks MX records so don't so it if you wanna receive emails on that domain, too

Re:I wish my web server were in the corner of my room (2022) by rovr138 on Tuesday September 16, 2025 @06:25AM (#45260382)
> Kinda breaks MX records so don't so it if you wanna receive emails on that domain, too

Is the CNAME on the root of the domain, @?

Re:I wish my web server were in the corner of my room (2022) by ffsm8 on Tuesday September 16, 2025 @10:06AM (#45262443)
In my case yes, because I did not care about breaking email delivery to that domain (it's a novelty domain pointing to my residential IP address, (surname-home.tld) which I use exclusively for my selfhosted Services
Re:I wish my web server were in the corner of my room (2022) by rovr138 on Tuesday September 16, 2025 @10:16AM (#45262569)
Oh perfect

Just wanted to ask since I’ve been bitten by that.

I do something similar, but I have them all under <service>.home.<example.com>

But that’s because I do have resources outside. Just helps my mental model to name space them.

Re:I wish my web server were in the corner of my room (2022) by ffsm8 on Tuesday September 16, 2025 @12:01PM (#45264053)
I know the feeling. Ive already configured almost all services to be header auth or disabled auth entirely if possible, and just put them all behind a SSO forward proxy (nginx + authentik)

I also played around with injecting a tiny script into the proxied response to just add a small drop down menu with all services I've got available. .. while that worked, finding a good place to inject that menu was a chore so it's currently disabled again :)

Re:I wish my web server were in the corner of my room (2022) by pastorhudson on Monday September 15, 2025 @10:32PM (#45257394)
I solved this with a corn tab that runs a script that checks my ip and updates my cloudflare dns if it changes. https://github.com/pastorhudson/cloudflare_dns_updater
Re:I wish my web server were in the corner of my room (2022) by romaniitedomum on Tuesday September 16, 2025 @12:54AM (#45258152)
> with a corn tab that

A corn tab you say? I'm all ears!

Re:I wish my web server were in the corner of my room (2022) by jraph on Tuesday September 16, 2025 @03:22AM (#45259088)
I wonder if that tastes good.

I assume they meant crontab (TIL that means "cron table", never wondered before)

https://en.wikipedia.org/wiki/Cron

Re:I wish my web server were in the corner of my room (2022) by me-vs-cat on Wednesday September 17, 2025 @09:36PM (#45283881)
fstab isn't named such because it makes you want to stab your face, either.
Re:I wish my web server were in the corner of my room (2022) by jraph on Thursday September 18, 2025 @11:25AM (#45290831)
Good one :-)

I suppose I would have wondered if I had learned these names now, back when I learned about them I just took them without questions apparently.

Re:I wish my web server were in the corner of my room (2022) by arcanemachiner on Monday September 15, 2025 @10:51PM (#45257514)
Spend 20 minutes setting up DuckDNS and you'll never have to worry about this again.

https://www.duckdns.org

Re:I wish my web server were in the corner of my room (2022) by renewiltord on Tuesday September 16, 2025 @04:03AM (#45259393)
Use cloudflare tunnel. It’ll stay alive through that.
Re:I wish my web server were in the corner of my room (2022) by 00deadbeef on Tuesday September 16, 2025 @04:12AM (#45259462)
Cloudflare lets you create tunnels for free which will keep your site online when the IP changes. This will also hide your IP as your DNS entry will be pointed to Cloudflare.
Re:I wish my web server were in the corner of my room (2022) by fundatus on Tuesday September 16, 2025 @07:53AM (#45260992)
Or Pangolin [1] on a cheap VPS, in case you want to self host the tunnel as well :-)

[1] https://github.com/fosrl/pangolin

Re:I wish my web server were in the corner of my room (2022) by jniles on Wednesday September 17, 2025 @08:59PM (#45283574)
Giving a second shout out to pangolin. You can also manage a multi site set up quite easily with built in auth and without much command line foo. Super useful if you run something like proxmox and eany go spin up several services without too much configuration on each service to expose to the world. Really happy with pangolin.