Need guidance on DNS configs for VPS/Pangolin
Good morning/evening my selfhosting friends,
I’m kind of a noob, so hopefully I can articulate what I’d like to accomplish well. I am currently in the process of overhauling my entire homelab, which has involved me setting up a VPS as a proxy/tunnel for remotely connecting to/exposing services on my LAN due to my ISP having me behind CGNAT.
Currently, I have a subdomain (provided via Namecheap) pointed at the static IP of the VPS. With this, I can ssh into my server with ssh root@vps.domain.tld which is what I want. Now, I seem to have landed on Pangolin for accomplishing the aforementioned proxy. However, when installing it, I’m stumped by the first few questions: Pangolin wants me to input my domain.tld, followed by pangolin.domain.tld for Pangolin specifically.
Reading the docs, they then want me to either create an A Record for a wildcard domain at my VPS’ IP, or create a root domain record aimed at the IP. My question is, how do I keep the vps.domain.tld while also allowing for pangolin.domain.tld to be valid at the same IP? I know I can create SRV Records, but I am unsure how Pangolin will handle that with the multiple TCP/UDP ports it needs open. I’ll also want to access it via HTTPS obviously, which may add some complexity.
I hope this makes sense, sorry if anything is unclear or if the solution is obvious.
INeedMana@piefed.zip 1 day ago
I haven’t done that myself but from https://pimylifeup.com/pangolin-linux/ I understand that will only be subdomain to access pangolin dashboard
Domains are just translation from name to IP. What gets served on which subdomain is then handled by nginx or traefik. AFAIK you can have all 3 (VPS, pangolin and root) to point at the same IP
marighost@piefed.social 1 day ago
Looks like a good resource to read, thanks! As you may know there are a billion and one guides for doing the same thing across a plethora of systems, and even more variables in between. Appreciate your time.