Skip to main content AdGuard Home (DNS) + Nginx Proxy Manager (local network) : r/selfhosted
r/selfhosted icon
Go to selfhosted
•

AdGuard Home (DNS) + Nginx Proxy Manager (local network)

Need Help

Heya guys,

I'm trying to fix this for 2 days now, read a ton of stuff but no results as of now :(

I have setup AdGuard Home as my DNS server (works fine) and I am trying to correctly setup NPM so I can finally get rid of IP:Port to something like sub.domain.local. (this does not work)

I had already a ton of services running and I am not sure if that is causing any issues. I basically setup Proxy Hosts through NPM but none of them is pointing where it should. I am not sure if I should have setup something differently or where to even start -.-"

I am a total noob on this, so any help would be appreciated.

Thank you!

Calling all experts and enthusiasts! Time is money, and with Squarespace, you can make even *more* when you offer your services with its all-in-one Commerce tools. So turn your practice into profit and your expertise into income.
Thumbnail image: Calling all experts and enthusiasts! Time is money, and with Squarespace, you can make even *more* when you offer your services with its all-in-one Commerce tools. So turn your practice into profit and your expertise into income.
Sort by:
Best
Open comment sort options
• • Edited

It sounds like the only thing missing in your setup is to create a "DNS Rewrite" in AdGuard Home which points your domain (I would set a wildcard domain like *.home.lan) to the IP of your NPM server.

This will allow all your devices with your DNS server to correctly resolve the domain (incl. subdomains if you chose a wildcard).

This is exactly how I run it in my network and it works perfectly since the day I set it up.

I was using custom filtering rules instead. I just entered a wildcard domain like you said on DNS Rewrite (*.is.local pointing to local IP) but trying something like archivebox.is.local redirects me to port :80 instead (I've added archivebox.is.local as a proxy host on NPM with local IP and port). Any ideas what I might have missed here? Thanks!

More replies

Sorry to reopen an old post but I have a problem with setting up that DNS Rewrite in Adguard Home.

My Nginx is setup but I can't add the DNS Rewrite because my nginx (docker) has the same IP as my Server with the Port 81 at the end but in Adguard Home I can't add the port in the DNS Rewrite.

I Just can't figure out how to point Adguard Home to nginx....?

More replies
More replies

I finally found the problem! I created most of my docker containers through Yacht. I was using the names I was giving through that but that was not actually their hostname. I couldn't really find a way to edit the hostnames through yacht so I did it manually through each container's config file and voila! It finally worked :D Thanks a ton!

I had to make my truenas not use port 80 ( which is the port that adguard or any dns sends traffic to for http) and port 443 (same for https) from the general settings. Then have NPM use those ports for http and https respectively (can be done from app edit ui), so that when you enter the IP address of your truenas in adguard, adguard actually sends the DNS queries to only two ports, and since we will have NPM use those ports, it will then take the rains from any queries that comes from adguard or any DNS and check its proxy hosts.