Conversation
Greptile SummaryThis PR fixes a bug where SOA queries at the zone apex were not returning the SOA record in the answer section. Because the Key changes:
The only minor concern is that the two identical response-building blocks are duplicated; extracting them into a private helper would make future maintenance safer. Confidence Score: 5/5Safe to merge — the fix is correct, well-tested, and the only remaining note is a non-blocking style suggestion. The bug fix is logically sound and covers both affected code paths. Both new test cases pass through distinct branches of the resolver (empty-records vs. exact-match), giving good coverage of the change. The Question and Zone constructors both normalize names to lowercase, so the $question->name === $zone->name comparison is safe. No existing behaviour is broken. The only open item is minor code duplication, which does not affect correctness or runtime safety. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Fix soa zone answer" | Re-trigger Greptile |
Fix senarios when SOA response is in authority section, instead of answer section.
We have record -> answer section
We dont have record -> authority section
This follows specs: