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 set --accept-dns=false stops Tailscale from changing a device's DNS

Network and access
~/tips/tip-tailscale-accept-dns-false

tailscale set --accept-dns=false

Makes one device ignore the DNS settings that the Tailscale admin console sends.

Tailscale pushes the DNS settings from the admin console to every device. That works nicely for MagicDNS, but on a machine with its own resolver setup it can get in the way.

The CLI reference lists --accept-dns as accepting the DNS configuration from the admin console, and says it defaults to accepting. Turn it off on one device:

tailscale set --accept-dns=false

From then on that device ignores the DNS settings of the tailnet. Everything else in Tailscale keeps running, and you still reach other devices by their Tailscale IP, for example ssh [email protected].

MagicDNS names stop resolving through the system on that device. The reference makes one exception: for tailscale ssh, the host can be the destination’s MagicDNS name even when --accept-dns=false was set on the local node. So this keeps working:

tailscale ssh user@my-server

To undo the change:

tailscale set --accept-dns=true

The caveat is that you now handle names yourself on that machine. If you want them back without turning the flag on, add the tailnet’s DNS server to your own resolver, or switch the flag on again and let Tailscale manage it. I would test a name lookup right after the change, so a broken setup shows up while you are still looking at the terminal.

Further reading: Tailscale CLI reference (set, ssh)

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