Can Nginx Proxy Manager be used for local DNS
DNS Tools
I’m talking about something like portainer.lab, etc.
If it can, how?
Sort by:
Best
Open comment sort options
Comments Section
Yes it can. Set up a local DNS server.
Can you point me toward instructions for doing that?
Comment deleted by user
Yes it can.
I use it for my local domain.
And if you have a fully qualified domain name, you can even get valid ssl certificates for your local domain.
You need DNS server.
To start small and simple, try dnsmasq.
After it's installed, create a file in /etc/dnsmasq.d , named like mydomains.conf
Inside it something like this:
Set the machine running dnsmasq has your computer dns server.
Everytime you type deluge.mydomain.com you will be forwarded to npm and npm will forward it to the actual server. In NPM keep adding yout apps, like portainer.mydomain.com and stash.mydomain.com so that it can be forwarded to the correct ip.
Thanks for all the help and suggestions, everyone. If I have to have a separate service setup for local DNS then I’ll (hopefully) use pfBlockerNG since I already have it setup (and it’s working well). Only problem is, I can’t find any info on how to setup local DNS on pfBlocker. I’ve googled and searched Reddit and all can find is info on blocking ads. I posted on the pfBlockerNG subreddit for help so I think I should be good to go once I figure that out.
nah you need pihole as a dns server and manually create the dns records to point the sub domain to NPM IP.
add pihole as the primary dns server on your router and or device manually and then renw and flush your dns on your client device.
so...if you run(replace mydomain.tld with an actual value) on your client device:
it should report your local ip and nothing external, make sure to stop forwarding the ports.
Edit: this isn't the only way to do nor i do care there's other ways of achieving the same task, i use real domains so that i can use it for other stuff.
I'm not going to give great detail guide on such a simple task nor should i have to explain how a reverse proxy isn't a DNS server or how all this work.
Downvote when the info is wrong not that you disagree with one correct way of doing the task.
How many services/domains are you talking about?
If you are using few services/domains and just a couple of computers, it's easier use only /etc/hosts.
That’s fine for my main workstation but I do a lot of stuff on my iPad. Not sure it has a hosts file.