Skip to content

[Bug]: Investigate DNS search path / resolver priority improvements. #817

Description

@jglogan

I have done the following

  • I have searched the existing issues
  • 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.

The post in the issue containing the analysis is: tailscale/tailscale#17096 (comment)

Current behavior

Tailscale short hostnames (e.g., stan, kenny) to fail resolution, even though Tailscale MagicDNS is properly configured and full domain names work correctly.

Expected behavior

MagicDNS should function properly.

Environment

- OS: macOS 26.1
- Xcode: Xcode 26
- Container: 0.6.0

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    facet/network
    on Oct 28, 2025
  2. added theissue type on Oct 28, 2025
  3. jglogan commented on Oct 28, 2025

    @jglogan
    ContributorAuthor

    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?

  4. rscorer commented on Nov 5, 2025

    @rscorer

    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.

    HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    facet/network

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions