mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2291] could not be resolved Host not found #1629
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1629
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ran-Xing on GitHub (Sep 25, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2291
docker-compose.yaml
/etc/hosts
CLI
nginx-proxy-manager
vist
nginx-proxy-manager log
nginx-proxy-manager web
@the1ts commented on GitHub (Sep 25, 2022):
@Ran-Xing my guess is that the docker container will use /etc/hosts as part of its DNS resolution so your entries in /etc/hosts work, but nginx is using its inbuilt resolver which only looks at the resolver its told to ask, i.e. /etc/nginx/conf.d/include/resolvers.conf which is for me the docker inbuilt resolver 127.0.0.11.
@Ran-Xing commented on GitHub (Sep 25, 2022):
@the1ts Do you have any suggestions?
@the1ts commented on GitHub (Sep 26, 2022):
@Ran-Xing Either use IP:PORT on the host side which will not change without docker changes, or use the in built DNS of docker i.e docker container name resolves to its
172.*.*.*address already and the container and nginx already use that DNS. For example you will be able to get the IP for NPM by pinging nginx-proxy-manager, the name given in your compose.yml@Ran-Xing commented on GitHub (Sep 26, 2022):
I am using dnsmasq for parsing dns and I have modified the docker config file
But nginx still cannot resolve
access.log
error.log
But I found that it can be resolved now, but the IP address is wrong
@the1ts commented on GitHub (Sep 27, 2022):
sorry, don't know what to say if docker DNS and what you say it should be are different.
@Ran-Xing commented on GitHub (Sep 27, 2022):
@the1ts https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2291#issuecomment-1257667828
The last paragraph.
@the1ts commented on GitHub (Oct 1, 2022):
I haven't replied since if everything was setup correctly I cannot see how the Docker DNS is getting IPs wrong. Something else is happening that you haven't told us yet.