mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 11:41:39 +00:00
client/tailscale: document SetDNS more
Updates #1235 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
796e222901
commit
fc5fba0fbf
@ -257,7 +257,20 @@ func Logout(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetDNS adds a DNS TXT record.
|
// SetDNS adds a DNS TXT record for the given domain name, containing
|
||||||
|
// the provided TXT value. The intended use case is answering
|
||||||
|
// LetsEncrypt/ACME dns-01 challenges.
|
||||||
|
//
|
||||||
|
// The control plane will only permit SetDNS requests with very
|
||||||
|
// specific names and values. The name should be
|
||||||
|
// "_acme-challenge." + your node's MagicDNS name. It's expected that
|
||||||
|
// clients cache the certs from LetsEncrypt (or whichever CA is
|
||||||
|
// providing them) and only request new ones as needed; the control plane
|
||||||
|
// rate limits SetDNS requests.
|
||||||
|
//
|
||||||
|
// This is a low-level interface; it's expected that most Tailscale
|
||||||
|
// users use a higher level interface to getting/using TLS
|
||||||
|
// certificates.
|
||||||
func SetDNS(ctx context.Context, name, value string) error {
|
func SetDNS(ctx context.Context, name, value string) error {
|
||||||
v := url.Values{}
|
v := url.Values{}
|
||||||
v.Set("name", name)
|
v.Set("name", name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user