Skip to content

Requests to *.k8s.orb.local failing with EAI_AGAIN from inside containers #2306

@alexFaunt

Description

@alexFaunt

Describe the bug

Issue

When making http requests from inside a container running in orbstack to any *.k8s.orb.local url, I get:

Error: getaddrinfo EAI_AGAIN anything.k8s.orb.local
      at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:121:26) {
    errno: -3001,
    code: 'EAI_AGAIN',
    syscall: 'getaddrinfo',
    hostname: 'anything.k8s.orb.local'
  }

However the same request made from outside the container returns a 404 error as I would expect as nothing is running.

Context

I can repeatedly demonstrate my problem with the script in the reproduction section. But when I have had others run the same script they do not have issues. So there's something to do with the specific setup on my machine. But despite upgrading/reinstalling/restarting everything I cannot get back to a working state.

I am happy to accept i've done something wrong, but I really need a debugging section in the documentation to run through of "Have you checked X port, or Y process". As everything else I do with orbstack appears to work fine, only k8s DNS is an issue, and there are no obvious errors presented to me in the UI.

To Reproduce

https://github.com/alexFaunt/orbstack-dns-issue

  1. Run orbstack - ensure k8s cluster is enabled
  2. Create a load balancer and nginx (see reproduction repo)
  3. Make a request from terminal (iTerm) to http://anything.k8s.orb.local, should receive a 200 response
  4. Make the same request from inside a container running in orbstack

Expected Result: receive a 200 response
Actual Result: EAI_AGAIN error as above

Expected behavior

Requests to *.k8s.orb.local receive the same response within a container as outside of a container.

Diagnostic report (REQUIRED)

OrbStack info:
Version: 2.0.5
Commit: cfe47627f138ffd822c958553b0a93eaf2692c71 (v2.0.5)

System info:
macOS: 26.1 (25B78)
CPU: arm64, 10 cores
CPU model: Apple M2 Pro
Model: Mac14,9
Memory: 32 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2026-01-13T15-58-47.967051Z.zip

Screenshots and additional context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    t/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions