wgengine/tsdns: fix MagicDNS lookups of shared nodes

Fixes tailscale/corp#1184
naman/netstack-use-tailscale-ip^2
Brad Fitzpatrick 4 years ago
parent b00c0e5f60
commit a4b39022e0

@ -201,12 +201,11 @@ func (r *Resolver) Resolve(domain string, tp dns.Type) (netaddr.IP, dns.RCode, e
break
}
}
if !anyHasSuffix {
return netaddr.IP{}, dns.RCodeRefused, nil
}
addr, found := dnsMap.nameToIP[domain]
if !found {
if !anyHasSuffix {
return netaddr.IP{}, dns.RCodeRefused, nil
}
return netaddr.IP{}, dns.RCodeNameError, nil
}

Loading…
Cancel
Save