Skip to content

Does CNAME destinations work? #2368

@pszypowicz

Description

@pszypowicz

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

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:

$ getent hosts sub2.domain.com
192.168.0.2 sub2.domain.com
$ getent hosts sub1.domain.com
192.168.0.2 sub2.domain.com sub1.domain.com

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:

sub1.domain.com could not be resolved (3: Host not found)

Nginx Proxy Manager Version

v2.9.18

To Reproduce
Steps to reproduce the behavior:

  1. Configure the destination
  2. Visit site in broswer, get 502
  3. Check the error_log and see Host not found

Expected behavior

Site should work

Operating System

Synology docker

  • NPM container with macvlan
  • A record points to synology macvlan shim interface

Additional context

DNS is handled with Adguard DNS rewrites

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions