tailscale / tailscale/tailscale
MagicDNS doesn‘t resolve hostname
- Dominant language
- Go
- Stars
- 36.5k
- Forks
- 3.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 123
Description
### 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](https://www.reddit.com/r/Tailscale/comments/1chky2s/comment/l24piq2/).
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.