:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(devbox): diagnose dns failures via the tailscale exit node (#67778)
Paul D'Ambra75f7096abfd2
diff --git a/.agents/skills/setting-up-devbox/SKILL.md b/.agents/skills/setting-up-devbox/SKILL.mdindex c4a3ad144768..3d05d129f5e9 100644--- a/.agents/skills/setting-up-devbox/SKILL.md+++ b/.agents/skills/setting-up-devbox/SKILL.md@@ -13,6 +13,23 @@ The devbox control plane lives inside a private VPC reachable only over TailscalIf `hogli devbox:doctor` reports the control plane unreachable, the fix is a PR adding the user to `group:engineering` in `tailnet-policy.hujson` (then ask Team DevEx if still blocked). Diagnose this before touching anything else.+### Control plane unreachable with a DNS cause? Check the exit node first++When doctor shows `[ok] Tailscale connected` but fails reachability with a **DNS** cause (`DNS lookup for coder.dev.posthog.dev failed`), that's usually not the grant: the client's split-DNS routes don't cover `dev.posthog.dev`, so the name never reaches the internal resolver.+The fix is selecting a Tailscale **exit node** — it routes DNS through infra that resolves `*.dev.posthog.dev`.+Check available exit nodes and select one via the Tailscale menu bar app (Exit Node) or CLI:++```bash+tailscale exit-node list # list available exit nodes+tailscale set --exit-node=<name> # enable one (use the Name from the list)+# on macOS when `tailscale` isn't on PATH:+/Applications/Tailscale.app/Contents/MacOS/Tailscale exit-node list+/Applications/Tailscale.app/Contents/MacOS/Tailscale set --exit-node=<name>+```++Do not suggest `/etc/hosts` or `/etc/resolver` workarounds — they hardcode internal ELB IPs that rotate, and the exit node is the supported path.+To confirm it's resolution rather than the grant: `dig coder.dev.posthog.dev @10.90.0.2` answering while the system resolver fails proves the name exists and only the resolution path is missing.+## Workflow### 1. Check state — `hogli devbox:doctor`