Skip to content

configure DNS on macOS runners#200

Merged
oxtoacart merged 1 commit into
percy/corp32821from
percy/magicdns
Oct 3, 2025
Merged

configure DNS on macOS runners#200
oxtoacart merged 1 commit into
percy/corp32821from
percy/magicdns

Conversation

@oxtoacart

@oxtoacart oxtoacart commented Oct 3, 2025

Copy link
Copy Markdown
Collaborator

On macOS, tailscaled does not manage DNS. Configure it manually in the GitHub action to make
sure MagicDNS name resolution works.

Updates tailscale/corp#32821

@oxtoacart
oxtoacart force-pushed the percy/magicdns branch 11 times, most recently from 3357f78 to 8d103aa Compare October 3, 2025 12:36
version: latest
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve

# macOS latest (ARM)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well test the latest macOS too.

@oxtoacart oxtoacart changed the title Experimenting with macOS MagicDNS configure DNS on macOS runners Oct 3, 2025
@oxtoacart
oxtoacart marked this pull request as ready for review October 3, 2025 12:41
@oxtoacart
oxtoacart force-pushed the percy/magicdns branch 6 times, most recently from 74b7a0f to c8b6ec5 Compare October 3, 2025 15:39
Comment thread dist/index.js Outdated
`--authkey=${finalAuthKey}`,
`--hostname=${hostname}`,
"--accept-routes",
"--accept-dns",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is defaulted to true but doesn't hurt to be explicit!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops added this on the dist/ file accidentally, might be good to mark this folder as generated so GitHub auto-collapses the diff.

Would be something like a:

/dist/* linguist-generated=true

in a .gitattributes file IIRC

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh oops, that was left over from experimentation.

Comment thread src/main.ts
core.setFailed(
`❌ Tailscale status is required in order to configure macOS`
);
process.exit(2);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we exit with status code 2 here specifically?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted something different so that one can distinguish this particular condition if need be.

On macOS, `tailscaled` does not manage DNS. Configure it manually in the GitHub action to make
sure MagicDNS name resolution works.

Updates tailscale/corp#32821

Signed-off-by: Percy Wegmann <percy@tailscale.com>
@oxtoacart
oxtoacart merged commit cfd1905 into percy/corp32821 Oct 3, 2025
13 of 14 checks passed
@oxtoacart
oxtoacart deleted the percy/magicdns branch October 3, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants