summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorKristoffer Dalby <kristoffer@tailscale.com>2026-02-18 15:36:13 +0100
committerKristoffer Dalby <kristoffer@dalby.cc>2026-03-05 05:31:41 -0800
commitd82e478dbcae0f01ab1cfa15f900544729ad75a6 (patch)
tree47af799dcbaa58bf5b72a91f25ef766609eb6a87 /control/controlhttp/controlhttpserver/controlhttpserver.go
parentfaf7f2bc45880cf4abf4bd94d35a3e4a72136ecc (diff)
downloadtailscale-d82e478dbcae0f01ab1cfa15f900544729ad75a6.tar.xz
tailscale-d82e478dbcae0f01ab1cfa15f900544729ad75a6.zip
cli: `--json` for `tailscale dns status|query`
This commit adds `--json` output mode to dns debug commands. It defines structs for the data that is returned from: `tailscale dns status` and `tailscale dns query <DOMAIN>` and populates that as it runs the diagnostics. When all the information is collected, it is serialised to JSON or string built into an output and returned to the user. The structs are defined and exported to golang consumers of this command can use them for unmarshalling. Updates #13326 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions