Skip to content

[Bug]: Could not resolve host: google.com (DNS not working) #1287

@n8henrie

Description

@n8henrie

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

I've been trying to check out container for a week or so but for the life of me I can't get DNS to work:

$ container run -it --rm alpine/curl curl https://google.com
curl: (6) Could not resolve host: google.com (Could not contact DNS servers)

I host my own DNS resolver.

$ scutil --dns
...
resolver #1
  search domain[0] : home.arpa
  nameserver[0] : 192.168.0.2
  nameserver[1] : 192.168.1.2
  if_index : 14 (en0)
  flags    : Scoped, Request A records
  reach    : 0x00020002 (Reachable,Directly Reachable Address)
  • DNS is working fine on my host machine (from which I'm posting this issue)
  • I use tailscale but have tried disabling it, no difference
  • I do not have any VPNs running
  • Have tried the usual sudo killall -HUP mDNSResponder and dscacheutil -flushcache tricks
  • Full reboot

Current behavior

All hostnames fail to resolve.

Expected behavior

Hostnames resolve

Environment

- OS: macos 26.3
- Xcode: 26.3
- Container:
  - 0.9.0 (build: release, commit: 3e49dce)
  - main @ 616870b531922b4c34ba6150bcdfab6cac16620d

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions