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]: Investigate DNS search path / resolver priority improvements. #817
If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
As pointed out by @austinlparker, there's a Tailscale issue that's open that identifies some possible ways for container to play more nicely when resolving plain hostnames.
Tailscale short hostnames (e.g., stan, kenny) to fail resolution, even though Tailscale MagicDNS is properly configured and full domain names work correctly.
What would help here is a simple-as-possible reproduction procedure for this. If I had a brand new MacBook and installed Tailscale, what steps would I follow to set up resolvable hostnames stan and kenny, and then after installing container what steps would I take to get it to fail?
My hypothesis, not having a new MacBook to hand, is that you install Tailscale on your MacBook and 2 Raspberry Pi5's called kenny and stan running ubuntu 25.04 which obviously join the same Tailscale network.
Then you can run my script on your Mac and you should see everything works as expected. (apparently dig requires the +short option)
Then install apple container, and follow the DNS steps as in the tutorial.
sudo container system dns create web-test
container system property set dns.domain web-test
Now run my script again, and you should see the error.
Finally if you delete your file /etc/resolver/containerization.web-test and restart(?), then my script should show everything working again.
Activity
jglogan commentedon Oct 28, 2025
What would help here is a simple-as-possible reproduction procedure for this. If I had a brand new MacBook and installed Tailscale, what steps would I follow to set up resolvable hostnames
stanandkenny, and then after installingcontainerwhat steps would I take to get it to fail?rscorer commentedon Nov 5, 2025
My hypothesis, not having a new MacBook to hand, is that you install Tailscale on your MacBook and 2 Raspberry Pi5's called kenny and stan running ubuntu 25.04 which obviously join the same Tailscale network.
Then you can run my script on your Mac and you should see everything works as expected. (apparently dig requires the +short option)
Then install apple container, and follow the DNS steps as in the tutorial.
sudo container system dns create web-test container system property set dns.domain web-testNow run my script again, and you should see the error.
Finally if you delete your file
/etc/resolver/containerization.web-testand restart(?), then my script should show everything working again.HTH
feat(dns): inherit host search domains for Tailscale/VPN compatibility (
fix(dns): improve DNS server reliability and compatibility (apple#817, …
fix(dns): improve DNS server reliability and compatibility (apple#817, …