in domain/dns self-check, don't warn about reverse dns that resolves to multiple names

this is fine. we just need to check if the expected name is among them.

feedback from mteege, thanks!
This commit is contained in:
Mechiel Lukkien
2025-02-16 15:55:31 +01:00
parent 6da5f8f586
commit 1d6f45e592

View File

@ -664,9 +664,6 @@ EOF
addf(&r.IPRev.Errors, "Looking up reverse name for %s of %s: %v", ip, host, err)
continue
}
if len(addrs) != 1 {
addf(&r.IPRev.Warnings, "Expected exactly 1 name for %s of %s, got %d (%v)", ip, host, len(addrs), addrs)
}
var match bool
for i, a := range addrs {
a = strings.TrimRight(a, ".")