When a name won’t resolve on my tailnet, my first question is whether Tailscale or my router is the one saying no. `tailscale dns query` settles that in one line.
The command sends a single DNS lookup through the local DNS forwarder, the same resolver your machine uses once MagicDNS is on. It needs Tailscale v1.76.0 or later.
tailscale dns query nas
Replace nas with a device name or any public domain. Add --json if you want machine-readable output. Run tailscale dns status first when you want to see how the forwarder is set up.
If you run Tailscale on Unraid, this is a quick way to check from the server’s terminal whether a container name or a tailnet device resolves, before you start blaming Docker or the router.
One caveat: the official CLI page only lists the command and its --json flag, so check tailscale dns query --help on your version for the exact arguments.
Further reading: Tailscale CLI reference