Bugzilla – Bug 665
when removing subdomain, nsd does not reparse parent zone
Last modified: 2015-04-20 12:50:25 CEST
When a zone, say example.com has the following zonefile:
subdomain.example.com. 10800 IN A 10.0.0.1
subdomain.example.com. 10800 IN NS ns.some.net
and you have a subdomain.example.com zone with the following:
subdomain.example.com. 10800 IN A 10.0.0.2
so two zones in nsd
nsd will correctly answer 10.0.0.2, but when I remove subdomain ns
from example.com and nsd-control delzone subdomain.example.com, a query
for subdomain.example.com does _not_ give the expected 10.0.0.1, but
nxdomain. A reload does not help.
Forgot to mention that a stop and start will ofcorse resolve this.
Thank you for the report. I have reproduced the issue and fixed the bug. Committed to the code repository in the trunk/ directory.
The code did not mark the old zone apex as a non-zone-apex, and that is why query answer lookup stopped there, returning an error, instead of moving further to examine the example.com zone for an answer.