-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS port 53 conflict with mdnsresponder #136
Comments
Hi Sorry if is a stupid question. Not much experience with this. My Mac as 5/6 processes that run on port 53, so when I try run the docker I get error: (docker: Error response from daemon: Ports are not available: exposing port UDP 0.0.0.0:53 -> 0.0.0.0:0: listen udp 0.0.0.0:53: bind: address already in use.) Anyway to resolve this?? |
You might want to try image Now if you want it to listen on port 53, you need to have that port available, or have a udp proxy to redirect requests to other ports depending on the request. If so, why do you want other programs listening on port 53? The dns v2.0.0-beta can already forward local names dns requests to other servers, but if you need something specific feel free to comment it and I can implement it eventually 😉
I don't think so 🤔 Only a single process can listen on a specific port+protocol. And the dns server should listen on both udp and tcp (for truncated messages not fitting over) |
I just saw your screenshot, sorry about that. What does |
Hi
|
It seems to be mDNSresponder. I made a google search and find this on an apple forum: mDNSresponder is a process required for discovering Macs used for Back to My Mac as well as related Bonjour device discovery features. It was briefly superseded by the ill-fated discoveryD which never worked right. |
Try with docker port mapping |
Hi, I get this error with port mapping vitor@MainServer ~ % docker run -d -p 127.0.0.1:53:53/udp -p 127.0.0.1:53:53/tcp qmcgaw/dns:v2.0.0-beta Do not know if I am running the command correctly. I saw this on docker-mac GitHub, but I am afraid to try it. I am on BigSur 11.7.6. I run several things on my setup and I do not want to mess things. OK, I installed vmnetd sudo /Applications/Docker.app/Contents/MacOS/install vmnetd but now I get the error , ports not available vitor@MainServer ~ % docker run -d -p 127.0.0.1:53:53/udp -p 127.0.0.1:53:53/tcp qmcgaw/dns:v2.0.0-beta I think I am going to give up. Thank you very much for all your help. Your work is much appreciated. |
What do you want to use the dns server for? Is it just for the machine running it or for other containers? If it's for the Machine running it, would you it be interesting to serve dns over tls on port 853 tcp instead of port 53? That's issue #106 😉 |
Hi Well, the idea was to use it for the machine running it and other containers and other machines on my network. |
Try turning off the use of the kernel for udp: this issue has also a bunch of workarounds worth trying I think. |
Thank you. I’ll try it. |
Hi Thank you for all your help. |
Sure, just pasting the panic stack trace would help 😉 I just ran the v2 tagged image without issue, so I'm definitely curious why it crashed, thanks! |
Oddly, on a VM running ubuntu 18.04 also get port 53 already in use error. |
By the way, if it's a VM, you won't be able to map it to port 53 on the host either, since it's still occupied right? Ubuntu may be running dnsmasq; if you're ok with a terminal only vm, try alpine it's the simplest/vanillaest well known linux out there (barely anything included in the base OS). That's what I use on my servers to avoid dealing with the BS of all various distributions (dnsmasq on debian, no dhcp on arch linux, etc.). Plus apk is pretty easy to use 😉 Otherwise, still on Ubuntu, you can probably configure dnsmasq to forward dns requests to another port I would guess. |
Yeah I think you are right, but on windows server VM it works. |
I use your vpn client and I am very happy with it, now I was trying this but I get error below.
The text was updated successfully, but these errors were encountered: