mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2368] Does CNAME destinations work? #1676
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#1676
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 @pszypowicz on GitHub (Nov 4, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2368
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I have 2 entries in my dns server:
sub1.domain.com -> CNAME sub2.domain.com
sub2.domain.com -> A record 192.168.0.2
I can get IP's of both from the shell of NPM container:
I'm configuring Proxy Host.
When I will configure destination to point to sub2.domain.com, everything works.
But when I'm using sub1.domain.com I see following error in the error_log:
Nginx Proxy Manager Version
v2.9.18
To Reproduce
Steps to reproduce the behavior:
Host not foundExpected behavior
Site should work
Operating System
Synology docker
Additional context
DNS is handled with Adguard
DNS rewrites@skirven4 commented on GitHub (Nov 6, 2022):
I have a CNAME set up, and it works fine. Do you have a valid entry in NPM that would resolve to your sub1.domain.com and would be accessible from the same location where you NPM is residing?
@the1ts commented on GitHub (Nov 6, 2022):
What DNS server is in /data/nginx/resolvers.conf I think this is made at first start and if you have changed DNS servers since perhaps that needs updating. i.e. the NPM container and the Nginx may use different DNS servers for the lookup giving you the differing results you are seeing.
The container (/etc/resolv.conf) probably uses 127.0.0.11 so points to the docker service which combines both docker hosted container names and forwards to the host to lookup requests external to docker.
@pszypowicz commented on GitHub (Mar 4, 2023):
I found some time to reproduce the problem again and investigate it deeper.
I do not have
/data/nginx/resolvers.confile, but I found that file in/etc/nginx/conf.d/includeand it looks like thisSo it looks like they both use the same dns server?
@github-actions[bot] commented on GitHub (Feb 6, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Mar 22, 2025):
Issue was closed due to inactivity.