Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get NPM to redirect for local traffic. #471

Closed
Dark1886 opened this issue Oct 8, 2023 · 3 comments
Closed

Unable to get NPM to redirect for local traffic. #471

Dark1886 opened this issue Oct 8, 2023 · 3 comments

Comments

@Dark1886
Copy link

Dark1886 commented Oct 8, 2023

Problem/Motivation

I'm using this for a local domains only to redirect a something like *.localdomain.lan to 192.168.1.X:Y so I don't need to remember all the ports/IPs for different services.

Expected behavior

When I type in Localdomain.Lan i would expect to see the same webpage if I went to Http://192.168.1.10:8123.

Actual behavior

I get a "DNS_PROBE_FINISHED_NXDOMAIN" error on the webpage.

Steps to reproduce

  1. Change DNS server on PC to point to device that is running NPM.
  2. Using HASSio I installed the marioDB and the addon NPM
  3. Create a Proxy Host
    image
  4. Navigate to the website "localdomain.lan"
@sinclairpaul
Copy link
Member

I believe you likely need to specify a host which can be resolved, i.e. x.domain.com, or alternatively have the correct A record at the root. Either way I would suggest validating using nslookup or other tools.

@sinclairpaul sinclairpaul closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2023
@Dark1886
Copy link
Author

Dark1886 commented Oct 8, 2023

@sinclairpaul

I updated my proxy domain name to HA.localdomain.lan and I've also added the following to my configuration.yaml as I believe it is needed, but still without any change.

http:
use_x_forwarded_for: true
trusted_proxies:

  • 192.168.1.0/24 # Add the IP address of the proxy server
  • 172.30.32.0/24

@sinclairpaul
Copy link
Member

This is a Proxy not a DNS server, you will need to configure your name resolution elsewhere

@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants