mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[GH-ISSUE #211] Does not do anything on Ubuntu 20.04 #86
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#86
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 @stam on GitHub (Sep 30, 2020).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/211
What is Happening
Running on Ubuntu 20.04, host cannot lookup hostname of docker containers
What is expected
On the host machine running
nslookup nginx.dockershould work, but it returns:Steps to Reproduce
First I run: docker run --hostname dns.mageddo --restart=unless-stopped
-v /var/run/docker.sock:/var/run/docker.sock
-v /etc/resolv.conf:/etc/resolv.conf
defreitas/dns-proxy-server
Also I run: docker run --rm --hostname nginx.docker nginx
Afterwards I try the nslookup also on the host machine.
Specs:
@ketilkn commented on GitHub (Nov 30, 2020):
@stam
There is a hint in /etc/resolv.conf
Specifically: To manage man:resolv.conf(5) in a different way, replace this symlink by a static file or a different symlink.
So what you can do is delete the symlink in etc and copy the current contents from the original source
This will slightly mess up your system, so you should probably revert the change by recreating the symlink once you are done
There may very well be a better way to go about this.
@johncadengo commented on GitHub (Dec 2, 2020):
I am running into this behavior as well. Any fixes? I'm not too sure about trying something that involves the statement "This will slightly mess up your system."
@johncadengo commented on GitHub (Dec 2, 2020):
@stam a DNS proxy server seems like a more elegant solution, which is why I was trying to get this to work. However, like you, I ran into issues with it working in Ubuntu 20.
So I found a workaround, using the hosts file. If you're still running into this problem, I got this up and running within minutes: https://github.com/dvddarias/docker-hoster
@mageddo commented on GitHub (Mar 2, 2023):
@ketilkn
yeah, since DPS 3.5.2 it will prefer to configure using systemd-resolved when avaible, give it a try
@mageddo commented on GitHub (Mar 2, 2023):
@stam
DPS is crashing right on the start, I also had this issue, looks to be fixed at 3.5.2, give it a try
@mageddo commented on GitHub (Mar 2, 2023):
@johncadengo
Yep, it's fixed for now
@mageddo commented on GitHub (Mar 3, 2023):
I'm closing this but feel free to reopen if you need