-
Hello, I am trying to set up dnsmasq for local subdomains on macOS. Basically, I'd like to do what is described in this blog post, but run everything in Podman containers. When I try to run
I get the error I've done some research and it seems like there are a few possible reasons why this is a problem. One is that the VM might have an unnecessary process bound to port 53: #17690 (comment) So, I ran
After that I can see:
I've also found this work around #23128 (comment), so I tried:
but that didn't have any success either. Does anyone have any ideas how I can get this working? I'm running Podman 5.2.2 on MacOS 13.6.7. Also, Podman machine is running in rootful mode if that makes any difference. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@Luap99 PTAL |
Beta Was this translation helpful? Give feedback.
-
This is complicated, first as you already noticed systemd-resolved is running and needs to be disabled. (I think we may want to do this by default in podman machine) The second issue is aardvark-dns using port 53 as well for the bridge interface. And while binding a specific host ip works around that on linux it will not work with podman machine. This is because in side the VM the host ip doesn't exists and cannot be used as all the traffic is proxied via gvproxy into the main interface of the VM. So in order to make port forwarding work from the VM into the container we discard the host ip and thus bind all inside the VM (295d87b) Now in order to work around that you need to configure aardvark-dns to use a different port via dns_bind_port in containers.conf and then it also will need a new netavark with containers/netavark#1080 in the VM otherwise aardvark-dns will no longer get any traffic it becomes not functional. This is not a issue if you do not use the container name resolution. |
Beta Was this translation helpful? Give feedback.
This is complicated, first as you already noticed systemd-resolved is running and needs to be disabled. (I think we may want to do this by default in podman machine)
The second issue is aardvark-dns using port 53 as well for the bridge interface. And while binding a specific host ip works around that on linux it will not work with podman machine. This is because in side the VM the host ip doesn't exists and cannot be used as all the traffic is proxied via gvproxy into the main interface of the VM. So in order to make port forwarding work from the VM into the container we discard the host ip and thus bind all inside the VM (295d87b)
Now in order to work around that you need to configure aa…