I would like to host my own web server with a domain name I purchased but my public IP isn't static.

top 50 comments

sorted by: hot top controversial new old
[–] 17 points 3 years ago (2 children)

I run ddclient on a local machine and it updates my Cloudflare DNS records if my IP changes.

OPNSense has it built in too, if you use it. So does PFSense, I think. Been a while, might be misremembering.

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 16 points 3 years ago

    I use duckdns.org , but if you are trying to host a webpage I totally recommend using Cloudflare, Cloudflare tunnels and a reverse proxy like nginx.

    Setting it up may be a bit tricky, but it is a gamechanger. I followed Ibracorp's guides and I had no problem.

  • source
  • [–] 10 points 3 years ago (2 children)

    I've been using freedns.afraid.org for about a year now.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 10 points 3 years ago (1 child)

    I host my own ddns server in a debian container https://wiki.debian.org/DDNS

  • source
  • hideshow 2 child comments
  • [–] 9 points 3 years ago (1 child)

    DNS managed by Cloudflare, and cf-ddns

  • source
  • hideshow 2 child comments
  • [–] 2 points 3 years ago

    2nd, but with just a bash script. Also, I'm forwarding http & https to different IPs and the best thing about cloudflare is that you can restrict those ports to only be open when coming from cloudflare's proxy. I like the extra layer of security, and dislike that they can see all traffic..

  • source
  • parent
  • [–] 8 points 3 years ago (1 child)

    I use a Cloudflare tunnel rather than a dynamic DNS provider. Some in the self hosting community are opposed to Cloudflare, but I appreciate the tools they provide (especially Zero Trust so I can put my self hosted apps behind Okta).

  • source
  • hideshow 2 child comments
  • [–] 8 points 3 years ago

    I'm using DuckDNS, it has a plugin for pfSense / OpnSense.

  • source
  • [–] 7 points 3 years ago (1 child)

    your domain provider probably has an api to update dns records i use cloudflare with their api because then i can hide my ip behind their proxy or if i don't have a public ip i can use their tunnels

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 7 points 3 years ago (2 children)

    If you only need public access to things like HTTP or SSH you don’t necessarily need to run dynamic ip and just setup Cloudflare Tunnels. So far I haven’t needed to put anything public that doesn’t run on the provided tunnels.

  • source
  • hideshow 4 child comments
  • [–] 6 points 3 years ago (3 children)

    I use DuckDNS. There's been only one outage for the ~2 years I've been using it and it's free. I also use DuckDNS to acquire the SSL certificates for the reverse proxy.

  • source
  • hideshow 6 child comments
  • [–] 2 points 3 years ago (1 child)

    How gave you set it up out of curiosity?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 3 years ago (2 children)

    I used duckdns for my jellyfin server, but after a week or so I started getting malicious site warnings from Firefox, and had to ‘accept the risk and continue’ every time. Ended up going back to noip. It’s a pain to renew every month, but I haven’t had any other problems with it.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 3 years ago

    I use noip as well, but because I only have an IP camera on that network, and the camera has built-in DDNS support for noip. But I hate it having to renew monthly.

  • source
  • parent
  • [–] 5 points 3 years ago* (1 child)

    Does your domain provider have a DDNS service? I buy my domains from namecheap.com and use their DDNS service for exactly what you're describing.

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 3 years ago (2 children)

    I have NameCheap as well. I found their Windows client after I made this post. I'm still curious is there are better services out there. It seems Cloudflare may have the best tools for security for a webserver, i.e. hiding the real IP address.

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (1 reply)
  • [–] 4 points 3 years ago

    First step would be to ensure that you can do port forwarding.

    1. Check if your IP address isn't a private one or CGNAT.
    2. Now set up reverse proxy and try connecting to your service. If it connects, you are okay.
    3. Now this is something i didn't know could happen but it did end up happening to me. I was happily port forwarding for a few months, until suddenly my port forwarding stopped working. Now I called my ISP, they said they did nothing(my ISP is a few guys who have no Idea about what they are doing, the other option to them is 512kbps DSL connection) at this point all my ingress ports are blocked and even outgoing ssh is blocked. Then the new month starts and everything is working again. I looked at my ISP website to get an idea of what may have caused this and the case seems to be that it was the first time I crossed 100GB in uploading. So my ISP has configured things such a way that port forwarding only works for the first 100GB of uploading.

    This is why I strongly recommend cloudfare tunnel or any other similar solution.

  • source
  • [–] 3 points 3 years ago

    I use this container, favonia/cloudflare-ddns, for Cloudflare and my domain.

  • source
  • [–] 3 points 3 years ago (1 child)

    If you're using godaddy, you can use a script to do your own dynamic DNS:

    https://www.instructables.com/Quick-and-Dirty-Dynamic-DNS-Using-GoDaddy/

  • source
  • hideshow 2 child comments
  • [–] 3 points 3 years ago

    The easiest thing to do is to use https://www.duckdns.org/ and then point your domain as a CNAME to this duckdns subdomain.

  • source
  • [–] 3 points 3 years ago (1 child)

    My IP isn’t technically static but it hasn’t changed in the 3 years I’ve been with this ISP.

  • source
  • hideshow 2 child comments
  • [–] 3 points 3 years ago (2 children)

    This. But I use namecheap and the built in tool on pfsense to keep an A record up to date if it ever changed.

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 1 point 3 years ago (1 child)

    I have NameCheap as well. I was trying to set this up with the ddclient on OPNSense but the logs suggested it couldn't connect to NameCheap. What do you need to authenticate other than the DDNS passcode supplied by NameCheap?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 3 years ago

    Oof. Set this up years ago now..

    Add the hostname IE public Add the domain name IE starkcommando.com

    This will be public.starkcommando.com

    Leave username blank (this was a gotchya for me, if I recall correctly)

    Then put the generated namecheap ddns password (not your account password) that matches the record in.

    All set.

  • source
  • parent
  • [–] 3 points 3 years ago
    [–] 2 points 3 years ago

    I use cloudflare and have a dyndns client running on my synology nas

  • source
  • [–] 2 points 3 years ago

    @starkcommando@lemmy.world dyndns worked fine. Duckdns is a preferred among self hosters. Also your domain name provider might also offer dynamic dns sometimes

  • source
  • [–] 2 points 3 years ago

    Afraid.org is what I've been using ever since dyndns started charging big prices for what used to be free.

  • source
  • [–] 2 points 3 years ago

    @starkcommando When I didn't have a static IP I was using CloudFlare for this with my own domain.

  • source
  • [–] 2 points 3 years ago

    https://www.duckdns.org but to be fair I have not properly configured it in #opnsense yet!

  • source
  • [–] 2 points 3 years ago*

    DNS-O-Matic (recommended by CloudFlare, among others) combined with SWAG and Authelia will handle dynamic DNS, reverse proxying, SSL certificates, and MFA. SWAG (nginx, Let's Encrypt and Certbot) and Authelia (MFA) run nicely in a 2 container Docker stack.

    Mine have been running for ~18 months on my NAS, though I have a fixed IP so no longer use a DDNS provider.

  • source
  • [–] 2 points 3 years ago

    I use myfritz.net for my homeserver. It is included in the routers of AVM 🐱

  • source
  • [–] 1 point 3 years ago

    I'm still using noip.com. There may be better/cheaper options these days, but this has worked well for me for years, and I don't see the need to change.

  • source
  • [–] 1 point 3 years ago

    duckdns and ydns

  • source
  • [–] 1 point 3 years ago

    Before, I used to use duckdns. Completely free and super simple
    Nowadays I just have a docker container that updates my A records on my domain directly through namesilo's API. Took like 5 mins to set up the config

  • source
  • load more comments
    view more: next ›