Skip to content

MagicDNS doesn‘t resolve hostname #12520

Description

@vwkd

What is the issue?

I'm running Tailscale with a client and a server in the same local network. The server has Tailscale SSH activated. Tailscale account has default settings, so MagicDNS is enabled.

Trying to connect via SSH from the client to the server with ssh user@hostname connects, but asks for the password of the user on the server. Presumably, the hostname resolves to the local IP 192.168.x.y instead of the Tailscale local IP 100.x.y.z. When instead running ssh user@100.x.y.z correctly opens the browser to authenticate with Tailscale.

When client and server aren't on the same local network, the client seems to be able to connect over ssh user@hostname just like over ssh user@100.x.y.z. Though not on iOS where the hostname doesn’t seem to work at all.

It seems there's similar reports, e.g. Reddit.

Steps to reproduce

  1. Install Tailscale on the server and activate with sudo tailscale set --ssh.
  2. Install Tailscale on the client and activate.
  3. Ensure the client is in the same local network as the server.
  4. Run ssh user@hostname or connect via SMB smb://hostname, VNC vnc://hostname, etc. in the Finder/Files app on the client.

Expected Result

Opens browser and authenticates with Tailscale.

Actual Result

Asks for password of user.

Are there any recent changes that introduced the issue?

No response

OS version

  • Fedora 40
  • macOS Sonoma 14.5, iOS 17.5.1

Tailscale version

  • 1.68.1

Other software

No response

Bug report

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugdnspod/network-featuressshRelating to Tailscale SSH https://tailscale.com/blog/tailscale-ssh/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions