this post was submitted on 05 May 2026
0 points (50.0% liked)

Ubiquiti

756 readers
3 users here now

Unofficial Ubiquiti community.

Discover innovations, troubleshoot, and optimize your Ubiquiti products and software.

founded 2 years ago
MODERATORS
 

In case the DNS provider failing, I would like to have a DNS entry or route on my Unifi Cloud Gateway to my selfhosted reverse proxy (Nginx on 172.16.10.30:7777). Therefore, I can still reach my applications using the domain. I did create a DNS entry (Settings > Policy Table > DNS). However, I am note able to point it to the port 7777.

TLDR: one.mydomain.com should be redirected to 172.16.10.30:7777 How can I achieve this with the Unifi Cloud Gateway?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] kieron115@startrek.website 1 points 8 hours ago (2 children)

Clarify for me a bit, are you trying to just have local resolution of your self-hosted services, or to have a full failover for public DNS when your provider goes down? Also why is it listening on 7777? Typically a reverse proxy would listen on 80 and 443.

[โ€“] spacehedgehog@lemmy.world 0 points 8 hours ago (1 children)

YES! That's it. (sorry if I have not explained the problem clear enough.)

normal mode: I have setup the reverse proxy and I'm using a public DNS for selfhosted services. Everything works fine.

problem: My internet is down. Hence no public DNS. And now I'm not able to use my self hosted applications.

This is why I'd like to have a local resolution. Because I am now in the unfortunate need of a full failover ๐Ÿ˜…

I always use different ports and map it during port forwarding. I thought this is safe(er)....

[โ€“] kieron115@startrek.website 1 points 8 hours ago* (last edited 8 hours ago)

Oh okay, naw you're good I just didn't want to make any assumptions. Since you're only worried about your self-hosted things then the easiest method would probably be to just add local entries for each service into Unifi so that those addresses always resolve to their domains internally without needing to hit your public domain name/IP.