August 25, 20241 yr I don't know if I should be asking this here on in Pi-hole's forum but here we go. 🤔  I have set a DNS Record in pihole to resolve unraid's IP to a local hostname (192.168.1.130 -> unraid.nas) and a bunch of CNAMES for each subdomain. Then NginxProxyManager resolving IP:PORTS to subdomains, the usual stuff.  In Unraid's network settings the DNS resolver points to Pihole at 192.168.1.20 and everything is fine and dandy.  Here's where my issue really starts: I want to remove Unraid from Pihole, I don't want Pihole to filter Unraid's DNS queries because my Unraid is very noisy and It's not blocking anything anyway, so I changed the IPv4 DNS server to 1.1.1.1 and now I can't no longer access my services through subdomain.unraid.nas. If I return to 192.168.1.20 it works again.  Looking at the NPM log I can see that it's complaining a lot: nginx: [emerg] host not found in upstream "unraid.nas" in /data/nginx/stream/1.conf:12  I understand that NPM can no longer resolve unraid.nas and that's why it's not properly booting and of course that's why I can't access my services through subdomain.unraid.nas.  Now, how could I fix this? Is there a way to edit the HOSTS file where I can point it to the right address? Modifying the hosts file does nothing sadly.  Thank you very much for the help. Edited August 25, 20241 yr by Nirvash
August 25, 20241 yr Author Solution Turns out I just needed to edit /data/nginx/stream/1.conf in appdata, restart NPM, and then change all the proxies from hostname to IP and everything is working fine again.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.