From 2bfaa4a2870539ccad0d68162880aac00d20e11e Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 12 Dec 2024 10:33:13 -0800 Subject: [PATCH] cmd/tailscale: add tailnet info to status output Updates #14375 Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris --- cmd/tailscale/cli/status.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/tailscale/cli/status.go b/cmd/tailscale/cli/status.go index e4dccc247..8afe5e737 100644 --- a/cmd/tailscale/cli/status.go +++ b/cmd/tailscale/cli/status.go @@ -231,6 +231,12 @@ func runStatus(ctx context.Context, args []string) error { outln() printf("# To see the full list of exit nodes, including location-based exit nodes, run `tailscale exit-node list` \n") } + + outln() + printf("# Tailnet:\n") + printf("# - Name: %s\n", st.CurrentTailnet.Name) + printf("# - MagicDNS Suffix: %s\n", st.CurrentTailnet.MagicDNSSuffix) + if len(st.Health) > 0 { outln() printHealth()