mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-28 12:02:23 +00:00
ipn/ipnlocal: be authoritative for the entire MagicDNS record tree.
With this change, shared node names resolve correctly on split DNS-supporting operating systems. Fixes tailscale/corp#1706 Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
f342d10dc5
commit
1d7e7b49eb
@ -1881,6 +1881,12 @@ func magicDNSRootDomains(nm *netmap.NetworkMap) []dnsname.FQDN {
|
|||||||
// TODO: propagate error
|
// TODO: propagate error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if strings.HasSuffix(fqdn.WithoutTrailingDot(), ".beta.tailscale.net") {
|
||||||
|
// When using our standard MagicDNS suffix, make ourselves
|
||||||
|
// authoritative for all of tailscale.net, so that we
|
||||||
|
// become the resolver for shared nodes as well.
|
||||||
|
fqdn = dnsname.FQDN("tailscale.net.")
|
||||||
|
}
|
||||||
ret := []dnsname.FQDN{
|
ret := []dnsname.FQDN{
|
||||||
fqdn,
|
fqdn,
|
||||||
dnsname.FQDN("0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa."),
|
dnsname.FQDN("0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa."),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user