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 status shows what MagicDNS is really doing

Network and access
~/tips/tip-tailscale-dns-status

tailscale dns status

Prints the local DNS forwarder and MagicDNS configuration so you can see why a device name fails.

When a machine name does not resolve, guessing is slow.

From Tailscale 1.74.0 on there is a command that prints the DNS setup of the machine you are on: the local DNS forwarder and the tailnet-wide MagicDNS configuration.

tailscale dns status

Use it before you start poking at resolv.conf. It tells you whether this machine is accepting the DNS settings from the tailnet at all. If not, the cause may be a preference set earlier. You can turn that off per device with tailscale set --accept-dns=false and back on with --accept-dns=true.

--all adds advanced debugging output and --json gives structured output.

Remember how MagicDNS works. A short name like nas works through search domains, while devices shared with you need the full name with the .ts.net tailnet suffix.

Caveat: on macOS, tools like host and nslookup skip the system resolver, so they fail even when ping works. Do not read that as a Tailscale problem.

I would run it first, read it once, and only then touch the settings.

Further reading: Tailscale CLI reference, MagicDNS, On this site: tailscale status –active hides every device that is sitting idle, On this site: tailscale netcheck tells you why your connection is not direct, On this site: Guide: send your tailnet's DNS through your own AdGuard Home with Tailscale split DNS

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