juanfont / headscale

An open source, self-hosted implementation of the Tailscale control server
BSD 3-Clause "New" or "Revised" License
22.99k stars 1.26k forks source link

[Bug] Tailscale Exit Node DNS Doesnt Provide DNS #2047

Closed W1BTR closed 2 months ago

W1BTR commented 2 months ago

Is this a support request?

Is there an existing issue for this?

Current Behavior

When connected to an exit node that is routing all traffic through said node, I cannot access the public internet as DNS does not work.

If I disable Tailscale DNS

Note I am only able to test this with the exit node on windows and the client running android.

Expected Behavior

Using the tailscale dns, my headscale server should route traffic to 1.1.1.1 as is in the config.

Steps To Reproduce

  1. Set up basic headscale server
  2. set the dns servers in the config
  3. Run an exit node
  4. Connect a device to the exit node with tailscale dns enabled
  5. DNS no worky.

Environment

- OS: Windows 10 & Android
- Headscale version: 0.23.0-beta
- Tailscale version: 1.70.0

Runtime environment

Anything else?

No response

kradalby commented 2 months ago

Does this happen with the alpha, if it does not, I would think this is the same issue as https://github.com/juanfont/headscale/issues/2026

W1BTR commented 2 months ago

I'm not using the custom nameservers mentioned in that issue (setting a custom ip for a domain in the headscale config), but it might be related.

Ill try in the alpha and report back this week.

W1BTR commented 2 months ago

Can confirm, alpha-12 does not have this issue.