mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #198] Unable to resolve container name to IP address #79
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#79
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 @sovereignstack on GitHub (May 25, 2020).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/198
What is Happening
dns-proxy-server is unable to resolve container name even when right environment variables are set and config settings are done.
#Run a test nginx container
sudo docker run -d --name=ngtest nginx#Run dns-proxy-server
#Try pinging ngtest from host
ping ngtestWhat is expected
Something like
Describe what you expected to happen and why
Steps to Reproduce
Describe which steps should be followed to reproduce the issue
Specs:
log.txt
conf.json.txt
Update:
I noticed that if I ping Container ID it works. But this is not the solution as container ID is cryptic and I want to use container names.
@royduin commented on GitHub (Jun 25, 2020):
Copy the content of
/etc/resolv.confand then remove it with:sudo rm /etc/resolv.conf, next recreate the file with Nano or Vim:vi /etc/resolv.confand paste the content. Then restart the container.@mageddo commented on GitHub (Jul 9, 2020):
I think it's related to this discurssion, DPS can't deal with hostnames without a domain, it conflicts with some other Linux features.
Try add a domain to your host, like ngtest.intranet or ngtest.docker, don't ngtest.local or simply ngtest