No split dns registered with the OS with an app connector. What is the issue? It's…
- User
No split dns registered with the OS with an app connector.
What is the issue?
It's possible to have an app connector but tailscale fails to register split dns with the OS to route dns requests to it.
Steps to reproduce
Linux w/ systemd-resolved Turn off MagicDNS No global dns fallback results in Tailscale not being used for DNS by the operating system
Are there any recent changes that introduced the issue?
No response
OS
No response
OS version
No response
Tailscale version
No response
Other software
No response
Bug report
No response
Interface
No new interfaces are introduced.
- Assistant
Now let me look at the test that references app connectors in
manager_test.go: - Assistant
Let me look at the test harness setup in manager_test.go to understand how test cases run:
- Assistant
Let me see the test setup and helper functions:
- Assistant
Now update
compileConfigin manager.go: - Assistant
Let me remove the fabricated issue number since I don't know the actual one:
- Assistant
Tests pass. Let me run the full package test suite plus vet to be safe:
- Assistant
All tests pass and vet is clean. The fix is complete.
Summary
Root cause: With an app connector, clients get split-DNS routes whose resolver is the connector's peerAPI DoH URL (e.g.
http://100.x.y.z:41641/dns-query, built inipn/ipnlocal/node_backend.go:1044). When MagicDNS is off and there's no global DNS fallback, those routes are the only DNS config, so all routes share a single resolver set.compileConfiginnet/dns/manager.gothen took the "let the OS do split DNS natively" path on split-capable OSes (Linux w/ systemd-resolved) and calledtoIPsOnly()— which silently drops any resolver that isn't a plain IP on port 53. The result: split DNS was registered with the OS with zero nameservers, so the OS never routed DNS queries to Tailscale at all.Fix:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.