mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #227] Confused how it is intended to be used, even with the old nsswitch system. #91
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#91
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 @bayeslearnerold on GitHub (Jun 16, 2021).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/227
What is Happening
When run in docker and using resolve.conf mapping,
it comments out the other dns servers in resolve.conf completely, thus making the host unable to resolve local servers (those neither in dockers, or on the internet).
In other words, running this with resolve.conf mapped from the host:
on the host:
ping container by hostname or servicename. docker . Good!
ping a local server on the lan, ---> not working.
ping an internet server ---> Good!
What is expected
need to implement split dns so that local hosts can still be resolved. But how can this be done if it is run on a docker bridge network, e.g. (authored in a docker-compose file)?
@mageddo commented on GitHub (Mar 2, 2023):
You need to configure this another local DNS server which was commented out at the /etc/resolv.conf file at DPS remoteDnsServers. See this section
Explanation:
DPS needs to be the unique DNS server configured at /etc/resolv.conf because in my tests if don't, Linux will randomly choose which dns server to use and it will broke the things.
A possible new feature
DPS would comment these servers and automatically configure them as remote servers though, it would be a nice feature, I will take a look at that.
@mageddo commented on GitHub (Mar 2, 2023):
I see, have you tried run DPS on HOST network mode just to check if it works?
@mageddo commented on GitHub (Mar 22, 2023):
Starting from DPS
3.15.1-snapshotit's not necessary to be the only one nameserver configured at resolv.conf , please follow #386 to the feature option to not comment out the existing dns servers.