this post was submitted on 09 Jan 2024
24 points (96.2% liked)

Selfhosted

40219 readers
1155 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi all.

I've got an old server PC that I use as a home server. Since my IP address sometimes changes due to my internet provider, I've been using DuckDNS and this DuckDNS crontab to keep the IP address up to date. But I've been having issues with DuckDNS not working reliably lately, and I thought that since I have a couple of domain names that I'm not using, I might try using one of those instead.

Problem is, I don't know where to start, either to get the domain pointing to my IP address, or to keep it updated when my provider changes my IP address.

Does anyone know of a guide that can walk me through this?

top 11 comments
sorted by: hot top controversial new old
[–] bless@lemmy.world 6 points 10 months ago (1 children)

Who's your DNS provider? I use cloudflare and powershell script and hits their API. Works well

[–] osarusan@kbin.social 4 points 10 months ago* (last edited 10 months ago) (1 children)

I'm using Cloudfare for DNS. I'll check out what they have available.

[–] bdonvr@thelemmy.club 3 points 10 months ago

I've been using this docker container over a year, with no issues. https://hub.docker.com/r/oznu/cloudflare-ddns/

But there's also this script: https://github.com/joshuar/cf-ddns

[–] eratic@feddit.uk 6 points 10 months ago (2 children)
[–] jws_shadotak@sh.itjust.works 2 points 10 months ago

Seconding this one

Super simple once you look at how the config file is formatted.

[–] osarusan@kbin.social 1 points 10 months ago

Thank you! I'll give that a try.

[–] lemmyvore@feddit.nl 6 points 10 months ago (1 children)

You should be able to do the crontab approach with any DNS provider that has an API – just need to change the URL and the API key, obviously.

If your provider or registrar doesn't offer an API consider using one that does. DeSEC.io is free to use and reliable.

[–] Atemu@lemmy.ml 1 points 10 months ago (1 children)

I've discovered DeSEC recently too and have been positively surprised by it. I use it for DNS but they also have dyndns on a shared domain similar to DuckDNS.

[–] lemmyvore@feddit.nl 2 points 10 months ago

Oh right I had forgotten about that, you can use DeSEC even without a domain, for dynamic DNS.

[–] Decronym@lemmy.decronym.xyz 1 points 10 months ago

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)

[Thread #422 for this sub, first seen 10th Jan 2024, 15:45] [FAQ] [Full list] [Contact] [Source code]

[–] kidpixo@lemmy.world 1 points 10 months ago

I solved this using tailscale, no need to make your home server visible to the world, no Forwarding rules on your router. It works like a VPN on your phone/laptop and access directly your target machine in your network running taiscale. There is a completely selfhosted version called Headscale, but you'll need an accessibile server on the internet. A cheap VPS would work for this. You can check also Zerotier, Nebula , Netmaker, pure Wireguard etc etc. Godspeed!