You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: default DNS doesn't work on macOS 26.0 Beta (25A5327h) #480
With no containers running those listeners should go away.
If you don't see those mDNSResponder on 53 with your container running, that's your proximal cause. Root cause is whatever's causing that to happen. There's an issue open relating to running other DNS servers on your host – that can be due to explicit action (the issue in question relates to wanting to put dnsmasq there), or using say a VPN (Cloudflare WARP) that want to post up on port 53.
@jglogan Thank you for quick response. Both with and without container run -it --rm --name blah alpine sh, lsof -i :53 returns nothing. I don't use a VPN. Not sure how to debug this.
Also I tried local dns which is not working too I guess it's the same problem:
$ container system dns default inspect
$ container run --rm --name blah alpine ping blah.container
ping: bad address 'blah.container'
I have no idea when I might installed that, but I stopped with brew services stop dnscrypt-proxy and now it works.
container run --rm --name blah alpine ping apple.com
PING apple.com (17.253.144.10): 56 data bytes
64 bytes from 17.253.144.10: seq=0 ttl=55 time=3.538 ms
64 bytes from 17.253.144.10: seq=1 ttl=55 time=5.532 ms
but local container domain seems not working
container run --rm --name blah alpine ping blah.container
ping: bad address 'blah.container'
trying
$ container system dns default set ct
ct
$ container system dns default inspect
ct
$ container run --rm --name blah alpine ping blah.ct
ping: bad address 'blah.ct'
$ container system dns default set ct
ct
$ cat /etc/resolver/containerization.ct
domain ct
search ct
nameserver 127.0.0.1
port 2053%
$ ls /etc/resolver
containerization.ct
$ container system dns default clear
Unset the default local DNS domain
$ ls /etc/resolver
containerization.ct
Activity
jglogan commentedon Aug 10, 2025
@seven1240 I just installed 0.3.0 from the release page and gave it a go, and I see your expected results.
Thanks for providing the differential case that works. Could you try a test with two terminals where you start an alpine shell in the first?
And then with that container running, try this in the second?
Expected for that would be something like:
With no containers running those listeners should go away.
If you don't see those mDNSResponder on 53 with your container running, that's your proximal cause. Root cause is whatever's causing that to happen. There's an issue open relating to running other DNS servers on your host – that can be due to explicit action (the issue in question relates to wanting to put
dnsmasqthere), or using say a VPN (Cloudflare WARP) that want to post up on port 53.seven1240 commentedon Aug 10, 2025
@jglogan Thank you for quick response. Both with and without
container run -it --rm --name blah alpine sh,lsof -i :53returns nothing. I don't use a VPN. Not sure how to debug this.Also I tried local dns which is not working too I guess it's the same problem:
update:
something did listen on 53
seven1240 commentedon Aug 10, 2025
update again: with sudo it I do see the
_mdnsresponderwhen container is running and gone when container stop.seven1240 commentedon Aug 10, 2025
now I see dnscrypt running
I have no idea when I might installed that, but I stopped with
brew services stop dnscrypt-proxyand now it works.but local container domain seems not working
trying
anything I'm doing wrong?
Thanks.
jglogan commentedon Aug 10, 2025
what does
ls /etc/resolvershow?seven1240 commentedon Aug 10, 2025
jglogan commentedon Aug 14, 2025
@seven1240 does
scutil --dnsshow your domain?You should see something like (I have the domain
testconfigured; you should see something for domainct):If that's there can you try running a container like this?
and then try doing a lookup on the container from your host?
For example on my system I see:
If that works, then try hitting your server:
seven1240 commentedon Aug 15, 2025
Everything works like you did. But I find it might be a Alpine problem,
curlanddigworks butpingfails.seven1240 commentedon Aug 15, 2025
Ping on debian image works. I think I can close this one now. Thanks for help. I also upgraded to macOS 26 Beta3.