watcher tests: far fewer live queries, longer live attempts (closes #214)
check / check (push) Successful in 1m11s

A domain check looked up each nameserver's addresses by asking every
nameserver of that name's zone for all eight record types; it now asks
only for A, AAAA and CNAME, the ones it reads.

The watcher tests now check example.org instead of cloudflare.com (two
nameservers instead of five) and desec.io instead of example.com (its
nameservers are in zones with two, not cloudflare.com's five). The
record change and NS failure tests start from saved state built on one
NS lookup instead of a first full check, and the port change test runs
only the port checks again. A live test attempt may take 18 seconds,
not 8. A new live test checks that a nameserver's addresses include
IPv4 and IPv6.

Model: opus-5-5
This commit was merged in pull request #215.
This commit is contained in:
2026-10-02 06:04:31 +02:00
parent 82836b41fd
commit dba932c9e3
6 changed files with 157 additions and 90 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func (r *Resolver) QueryEachNS(
nameservers []string,
hostname string,
) (map[string]*NameserverResponse, error) {
return r.queryEachNS(ctx, nameservers, hostname)
return r.queryEachNS(ctx, nameservers, hostname, recordTypes())
}
// ResolveNSIPs exports resolveNSIPs for testing.