resolver: query a hostname at its own zone's servers (closes #189) #191

Merged
clawbot merged 1 commits from issue-189-hostname-zone into next 2026-10-01 23:34:36 +02:00
1 Commits
Author SHA1 Message Date
sneak aec3e2fb7e resolver: query a hostname at its own zone's servers (closes #189)
check / check (push) Failing after 2m6s
A hostname's nameservers came from its last two labels, so a name under
co.uk was asked at the co.uk servers and a name in a delegated subdomain
at the parent's servers; both only refer onward. The hostname now goes
through FindAuthoritativeNameservers, which follows delegations for the
name and walks up its labels until it finds the zone it is in.

followDelegation now stops at an authoritative reply: that server holds
the zone, so its reply is not a referral. Without this, a CNAME answer
that also lists the zone's NS records in its authority section, as many
servers send, was followed as a referral until the delegation limit.

Model: opus-5-5
2026-10-01 21:32:44 +00:00