Created
October 28, 2024 16:24
-
-
Save eggplants/d1fe5c64413c9cae646b5727a3a1228f to your computer and use it in GitHub Desktop.
Get your tailnet name with(out) jq from `tailscale status` output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# get your tailnet name with jq: | |
tailscale status --json | jq -r '.MagicDNSSuffix' | |
# or, without jq: | |
tailscale status --json | grep -m1 MagicDNSSuffix | cut -f4 -d'"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment