fix: allow querying the root DNS zone (#6602)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Pegasus 2026-01-06 02:53:17 -05:00 committed by GitHub
parent 1d500bb88f
commit 461699d579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2083,8 +2083,9 @@ message HealthCheckResponse {
return false;
}
// Wildcard is allowed only for DNS
if (!isFQDN(hostname, {
// Root zone "." is valid for DNS but not recognized by isFQDN
const isRootZone = this.monitor.type === "dns" && hostname === ".";
if (!isRootZone && !isFQDN(hostname, {
allow_wildcard: this.monitor.type === "dns",
require_tld: false,
allow_underscores: true,