tailscale status -json | jq -r '.Self.DNSName[:-1]'- Requires
tailscaleandjq. [:-1]removes the tailing dot.
There may be other options -- like choosing a different field or choosing a another command instead ofjq-- but I wanted to keep it brief.- Dicussed here, but the site is in read-only mode and may disappear. Let's hope the search results will fix themselves while I post it here.