Description
Bug description
Following the documentation on https://www.gitpod.io/docs/integrations/tailscale leads to a Tailscale installation that does not work with Tailscale's DNS.
There's some more history on that problem in this issue:
Also an open issue on Tailscale to ignore failures w/ ipv6 setup: tailscale/tailscale#3002
The issue was closed by this PR: gitpod-samples/demo-tailscale-with-gitpod#7
Which adds some configuration to the Docker image so that ip6tables works. Important to note that the Tailscale integration docs on the website weren't updated to include this change.
I've added the fix from the PR to my custom Docker image, but the DNS issues seem to persist. This time, /etc/resolv.conf
is updated, but any DNS requests (to internal or external services) time out. This error is seen in the tailscaled
logs:
dns udp query: context deadline exceeded
Communication to the Tailnet seems to be intact. I can curl an internal service directly with a private IP address.
Also, DNS lookups with dig
or nslookup
work with public DNS when Tailscale is still running (i.e. nslookup google.com 8.8.8.8
).
I also tried all the same steps but using the demo from https://github.com/gitpod-io/demo-tailscale-with-gitpod and got the same results.
@DentonGentry
Pinging you as you were active on the other relevant issues. Thanks for your work on this so far.
Steps to reproduce
- Setup the tailscale with
have MagicDNS disabled
andset a couple Global Nameservers up
and"Override local DNS" flag turned on
- Start a gitpod w/ Tailscale demo: https://github.com/gitpod-io/demo-tailscale-with-gitpod
- Sign in to Tailscale
- Open a terminal and try reaching any internal (tailnet) or external service (i.e.
ping google.com
) tailscaled
logs error.ping
is unable to resolve dns
Workspace affected
No response
Expected behavior
Tailscale integration should support DNS.
Example repository
https://github.com/gitpod-io/demo-tailscale-with-gitpod
Anything else?
No response