[PR #745] [CLOSED] Allow nginx to resolve docker hostsnames #3290

Closed
opened 2026-02-26 07:38:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/745
Author: @Mechazawa
Created: 11/28/2020
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • a71c327 Allow nginx to resolve docker hostsnames

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 docker/rootfs/etc/nginx/nginx.conf (+2 -2)

📄 Description

image

I've been unable to connect to docker hosts using their hostname even if they are on the same network. This fixes it by overriding the incorrect auto generated default value for the dns resolver.

See: http://docs.docker.oeynet.com/engine/userguide/networking/configure-dns/

Note: The DNS server is always at 127.0.0.11.

Fixes #203


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NginxProxyManager/nginx-proxy-manager/pull/745 **Author:** [@Mechazawa](https://github.com/Mechazawa) **Created:** 11/28/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`a71c327`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/a71c327c74f6763ae997b73b6955eeadf5a822cb) Allow nginx to resolve docker hostsnames ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docker/rootfs/etc/nginx/nginx.conf` (+2 -2) </details> ### 📄 Description ![image](https://user-images.githubusercontent.com/1144171/100527835-90fa0980-31d6-11eb-8dd8-de5dcd1d70f5.png) I've been unable to connect to docker hosts using their hostname even if they are on the same network. This fixes it by overriding the incorrect auto generated default value for the dns resolver. See: http://docs.docker.oeynet.com/engine/userguide/networking/configure-dns/ > Note: The DNS server is always at 127.0.0.11. Fixes #203 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 07:38:46 +03:00
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#3290
No description provided.