Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS: mDNSResponder is turned off during CI and it's failing to make requests to localhost #9628

Closed
3 of 13 tasks
damusix opened this issue Apr 3, 2024 · 2 comments
Closed
3 of 13 tasks
Labels
Area: Apple bug report duplicate This issue or pull request already exists OS: macOS

Comments

@damusix
Copy link

damusix commented Apr 3, 2024

Description

See https://github.com/hapijs/hapi/actions/runs/8545413008

This issue is replicable on a local mac that doesn't have any sharing features enabled (file sharing, screen sharing, display mirroring, etc; anything that enables mdnsresponder). I have been able to successfully replicate the issue on my M2 on the latest MacOS version (14)

See https://discussions.apple.com/thread/7707202?sortBy=best for reference

This doesn't allow any tests that use the ifconfig given network for running a local server. For example, I tried opening a server using the node builtinhttp and the library @hapi/hapi and was unable to access any routes via browser or curl to local DNS.

It seems this is a functioning workaround: #9346 (comment) but it seems silly to have to patch what should be an inherent feature of an OS.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

See https://github.com/hapijs/hapi/actions/runs/8545413008

Is it regression?

works in macos-11 (see hapijs/.github@6c1069a)

Expected behavior

to be able to bind programs to $(hostname -f) and $(hostname -s)

Actual behavior

requests never resolve

Repro steps

Run @hapijs/hapi tests in mac-latest

@shamil-mubarakshin
Copy link
Contributor

Hello @damusix. Thanks for the report, we will take a look

@Alexey-Ayupov
Copy link
Collaborator

Hello @damusix, we understand that the problem exists, however if you run sudo launchctl list com.apple.mDNSResponder.reloaded you will see that mDNSResponder service is up and running.
We will continue to investigate the issue, please check progress on the #8649 issue.

Duplicate of #8649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Apple bug report duplicate This issue or pull request already exists OS: macOS
Projects
None yet
Development

No branches or pull requests

3 participants