[GH-ISSUE #3633] Missing/mangled /etc/resolv.conf prevents nginx from starting #2407

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

Originally created by @naanlizard on GitHub (Mar 16, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3633

So I've been reworking my whole home stack and part of that was installing among other things, nginx-proxy-manager and adguard home. Adguard home has you edit/replace /etc/resolv.conf or perhaps I did it on my own initiative.

One way or another, my /etc/resolv.conf file was either missing or mangled and so when the container (running this in docker of course) creates the various nginx config files, it throws an error

It would be nice to include some warning or something about what's gone wrong, or perhaps fix it automatically, or work around the issue in some other way.

Hardcoding e.g. google dns would work but maybe annoy privacy minded people, hardcoding local dns may work but I'm not sure, honestly networking is effectively magic to me so I won't try to make specific suggestions.

Thanks y'all, great project other than me shooting myself in the foot like this.

Originally created by @naanlizard on GitHub (Mar 16, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3633 So I've been reworking my whole home stack and part of that was installing among other things, nginx-proxy-manager and adguard home. Adguard home has you edit/replace /etc/resolv.conf or perhaps I did it on my own initiative. One way or another, my /etc/resolv.conf file was either missing or mangled and so when the container (running this in docker of course) [creates the various nginx config files](https://github.com/NginxProxyManager/nginx-proxy-manager/blob/d40f9e06fc25acbf6906663edcef462a1a902cdf/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/40-dynamic.sh#L14), it throws an error It would be nice to include some warning or something about what's gone wrong, or perhaps fix it automatically, or work around the issue in some other way. Hardcoding e.g. google dns would work but maybe annoy privacy minded people, hardcoding local dns may work but I'm not sure, honestly networking is effectively magic to me so I won't try to make specific suggestions. Thanks y'all, great project other than me shooting myself in the foot like this.
kerem 2026-02-26 07:35:27 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2024):

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

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

@github-actions[bot] commented on GitHub (Oct 30, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:3465854232 --> @github-actions[bot] commented on GitHub (Oct 30, 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#2407
No description provided.