brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tailscale dns query asks Tailscale's own resolver one question

Network and access
~/tips/tailscale-dns-query

tailscale dns query nas

Sends one DNS lookup through the resolver Tailscale runs on your machine, so you see what MagicDNS answers.

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

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link