tailscale/client/tailscale
Andrea Gottardo d060b3fa02
cli: implement `tailscale dns status` (#13353)
Updates tailscale/tailscale#13326

This PR begins implementing a `tailscale dns` command group in the Tailscale CLI. It provides an initial implementation of `tailscale dns status` which dumps the state of the internal DNS forwarder.

Two new endpoints were added in LocalAPI to support the CLI functionality:

- `/netmap`: dumps a copy of the last received network map (because the CLI shouldn't have to listen to the ipn bus for a copy)
- `/dns-osconfig`: dumps the OS DNS configuration (this will be very handy for the UI clients as well, as they currently do not display this information)

My plan is to implement other subcommands mentioned in tailscale/tailscale#13326, such as `query`, in later PRs.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
2024-09-04 19:43:55 +00:00
..
apitype cli: implement `tailscale dns status` (#13353) 2024-09-04 19:43:55 +00:00
example/servetls all: update copyright and license headers 2023-01-27 15:36:29 -08:00
acl.go client/tailscale: adding missing proto field in ACL parsing structures (#13051) 2024-09-03 18:04:39 +00:00
devices.go client/tailscale: add NodeID to device 2024-06-17 17:06:18 +02:00
dns.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
keys.go client/tailscale: revert CreateKey API change, add Client.CreateKeyWithExpiry 2023-05-12 21:05:12 -07:00
localclient.go cli: implement `tailscale dns status` (#13353) 2024-09-04 19:43:55 +00:00
localclient_test.go ipn/localapi,client/tailscale,cmd/derper: add WhoIs lookup by nodekey, use in derper 2024-06-14 08:37:38 -07:00
required_version.go all: switch to and require Go 1.23 2024-08-22 12:31:08 -07:00
routes.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tailnet.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tailscale.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00