tailscale/ipn/localapi
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
..
cert.go cmd/tailscale: add --min-validity flag to the cert command (#12822) 2024-07-19 09:35:22 -07:00
debugderp.go ipn/{ipnlocal,localapi},wgengine{,/magicsock}: plumb health.Tracker 2024-04-26 09:43:28 -07:00
disabled_stubs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
localapi_test.go ipn/{ipnauth,ipnlocal,ipnserver,localapi}: start baby step toward moving access checks from the localapi.Handler to the LocalBackend 2024-08-28 13:49:58 -05:00
localapi.go cli: implement tailscale dns status (#13353) 2024-09-04 19:43:55 +00:00
pprof.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00