tailscale/net/dns
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
..
publicdns
recursive
resolvconffile
resolver dns: increase TimeToVisible before DNS unavailable warning (#13317) 2024-08-29 11:43:38 -07:00
config.go
debian_resolvconf.go
direct.go
direct_linux.go net/dns: updated gonotify dependency to v2 that supports closable context 2024-08-22 12:36:26 -07:00
direct_notlinux.go
direct_test.go
direct_unix_test.go
flush_default.go
flush_windows.go
ini.go
ini_test.go
manager.go cli: implement `tailscale dns status` (#13353) 2024-09-04 19:43:55 +00:00
manager_darwin.go net/dns: support GetBaseConfig on Darwin OSS tailscaled (#13351) 2024-09-04 10:31:58 -07:00
manager_default.go
manager_freebsd.go
manager_linux.go
manager_linux_test.go
manager_openbsd.go
manager_tcp_test.go
manager_test.go
manager_windows.go
manager_windows_test.go
nm.go
noop.go
nrpt_windows.go
openresolv.go
osconfig.go
osconfig_test.go
resolvconf-workaround.sh
resolvconf.go
resolvconfpath_default.go
resolvconfpath_gokrazy.go
resolvd.go
resolved.go
utf.go
utf_test.go
wsl_windows.go