mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 01:56:00 -04:00
For a query whose qname is the root, the labels==1 branch in redirect2() called dns_name_copy(redirectname, view->redirectzone) with arguments reversed, overwriting the view-global nxdomain-redirect target with the empty redirectname rather than copying the configured target into the per-query lookup name. After the corruption, view->redirectzone names the root, so dns_name_issubdomain() makes redirect2() short-circuit for every subsequent query and the nxdomain-redirect feature stops working until named is restarted. Triggering this needs the resolver to receive an NXDOMAIN for the root from upstream, which does not happen in normal DNS operation. Swap the arguments to match the dns_name_copy(source, dest) signature. Add a system test that issues a root query through the nxdomain-redirect resolver and verifies the redirect feature still works for a normal NXDOMAIN-producing query afterwards. Assisted-by: Claude:claude-opus-4-7 |
||
|---|---|---|
| .. | ||
| include | ||
| .gitignore | ||
| client.c | ||
| hooks.c | ||
| interfacemgr.c | ||
| listenlist.c | ||
| meson.build | ||
| notify.c | ||
| probes-ns.d | ||
| query.c | ||
| server.c | ||
| stats.c | ||
| tests | ||
| update.c | ||
| xfrout.c | ||