[GH-ISSUE #2423] IPv6 ULA creates problem in resolvers.conf #1699

Closed
opened 2026-02-26 07:32:06 +03:00 by kerem · 2 comments
Owner

Originally created by @kingfisher77 on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2423

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

We use a dual stack IPv6-ULA/IPv4 custom docker network (together with ipv6 nat container)

This creates an unfortunate situation in /etc/nginx/conf.d/include/resolvers.conf (which is beeing generated from /etc/services.de/nginx/run)

This script generates an IPv6 dns entry in resolvers.conf which cannot resolve internal container service names, which leads to frequent server errors - when nginx randomly uses one of the IPv6 dns addresses for docker service name resolution.

Generated resolver.conf: resolver 127.0.0.11 [2001:4860:4860::8888] [2001:4860:4860::8844] valid=10s;

Nginx Proxy Manager Version

v2.9.19

Expected behavior

resolvers.conf should not have external ipv6 dns server addresses for internal docker service name resolution.

Screenshots

Operating System

Additional context

Not sure how to solve this one. Maybe another switch like "IPV6_RESOLVER=false"

We fixed this behaviour by linking a custom resolvers.conf without IPV6 addresses.

volumes:
      - ./conf/resolvers.conf:/etc/nginx/conf.d/include/resolvers.conf:ro

$ cat conf/resolvers.conf
resolver 127.0.0.11 valid=10s;

No errors anymore.

Originally created by @kingfisher77 on GitHub (Nov 23, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2423 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **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** <!-- A clear and concise description of what the bug is. --> We use a dual stack IPv6-ULA/IPv4 custom docker network (together with [ipv6 nat container](https://github.com/robbertkl/docker-ipv6nat)) This creates an unfortunate situation in /etc/nginx/conf.d/include/resolvers.conf (which is beeing generated from /etc/services.de/nginx/run) This script generates an IPv6 dns entry in resolvers.conf which cannot resolve internal container service names, which leads to frequent server errors - when nginx randomly uses one of the IPv6 dns addresses for docker service name resolution. Generated resolver.conf: `resolver 127.0.0.11 [2001:4860:4860::8888] [2001:4860:4860::8844] valid=10s;` **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> v2.9.19 **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> resolvers.conf should not have external ipv6 dns server addresses for internal docker service name resolution. **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> **Additional context** <!-- Add any other context about the problem here, docker version, browser version, logs if applicable to the problem. Too much info is better than too little. --> Not sure how to solve this one. Maybe another switch like "IPV6_RESOLVER=false" We fixed this behaviour by linking a custom resolvers.conf without IPV6 addresses. ``` volumes: - ./conf/resolvers.conf:/etc/nginx/conf.d/include/resolvers.conf:ro ``` ``` $ cat conf/resolvers.conf resolver 127.0.0.11 valid=10s; ``` No errors anymore.
kerem 2026-02-26 07:32:06 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1925539614 --> @github-actions[bot] commented on GitHub (Feb 4, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2742069520 --> @github-actions[bot] commented on GitHub (Mar 21, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1699
No description provided.