Every query-log row says whether it was blocked, by which list and rule, where the answer came from, and how long it took #99

Open
opened 2026-10-31 12:42:06 -04:00 by claude · 0 comments
Owner
  • Draft: PQ-1
  • Priority: high (the "why did this site break?" workflow; the stats dashboard and the domain test tool depend on it)
  • Agent: none (epic)
  • Depends on: none
  • Decisions: Q-PQ-4

Why

A query-log row today holds only time, client, protocol, name, type, response code and answer count (src/dotnet/src/Ninlil.Dns.Data.Abstractions/Entity/DnsQueryLogEntryEntity.cs:23-76). The event that feeds it has the same fields (src/dotnet/src/Ninlil.Dns.Server.Core/Events/DnsQueryAnsweredEvent.cs:25-33). So a filter block and a real NXDOMAIN look the same. The log does not show the answer, the upstream, a cache hit or the response time. The filter engine's decision carries only a fixed text reason (src/dotnet/src/Ninlil.Dns.Server.Core/Filtering/DnsFilterDecision.cs:20; DnsFilterEngine.cs:149, :580), so even the engine does not know which list matched.

What changes

Child issues, in order:

  1. #100: filter and schedule decisions name the list, the rule and the check.
  2. #101: the answered event carries the outcome (opcode, answer source, upstream, elapsed time, block detail, AD bit, answer summary).
  3. #102: query-log storage gains the columns, indexes and search criteria (the opcode included).
  4. #103: the subscriber stores the fields under the privacy level, and QueryLogController returns and filters them.
  5. #104: the OpenAPI snapshot and the Angular client are regenerated.
  6. #105: the console's query log shows the new columns, a row detail panel and new filters.

Acceptance

  • #100 to #105 closed.
  • README query-log section describes the new fields, and that RFC 2136 UPDATEs are logged as UPDATE.

Source

  • audit-feature-parity.md §2A #2 (gap 6 of the owner's post-release list; plan agreed 2026-09-24, memory/project_first_release_plan.md:25).
  • bughunt-plan.md:539 (B20-3, opcode in the query log), folded into #101 to #105 (BUG-36, BUG-37 and BUG-38 dropped as duplicates, DEDUPE.md).
  • Owner decision 2026-10-31 (Q-PQ-4): "yes, capped 512 chars" — every row stores an answer summary.
- **Draft:** PQ-1 - **Priority:** high (the "why did this site break?" workflow; the stats dashboard and the domain test tool depend on it) - **Agent:** none (epic) - **Depends on:** none - **Decisions:** Q-PQ-4 ### Why A query-log row today holds only time, client, protocol, name, type, response code and answer count (`src/dotnet/src/Ninlil.Dns.Data.Abstractions/Entity/DnsQueryLogEntryEntity.cs:23-76`). The event that feeds it has the same fields (`src/dotnet/src/Ninlil.Dns.Server.Core/Events/DnsQueryAnsweredEvent.cs:25-33`). So a filter block and a real NXDOMAIN look the same. The log does not show the answer, the upstream, a cache hit or the response time. The filter engine's decision carries only a fixed text reason (`src/dotnet/src/Ninlil.Dns.Server.Core/Filtering/DnsFilterDecision.cs:20`; `DnsFilterEngine.cs:149`, `:580`), so even the engine does not know which list matched. ### What changes Child issues, in order: 1. #100: filter and schedule decisions name the list, the rule and the check. 2. #101: the answered event carries the outcome (opcode, answer source, upstream, elapsed time, block detail, AD bit, answer summary). 3. #102: query-log storage gains the columns, indexes and search criteria (the opcode included). 4. #103: the subscriber stores the fields under the privacy level, and `QueryLogController` returns and filters them. 5. #104: the OpenAPI snapshot and the Angular client are regenerated. 6. #105: the console's query log shows the new columns, a row detail panel and new filters. ### Acceptance - [ ] #100 to #105 closed. - [ ] README query-log section describes the new fields, and that RFC 2136 UPDATEs are logged as UPDATE. ### Source - `audit-feature-parity.md` §2A #2 (gap 6 of the owner's post-release list; plan agreed 2026-09-24, `memory/project_first_release_plan.md:25`). - bughunt-plan.md:539 (B20-3, opcode in the query log), folded into #101 to #105 (BUG-36, BUG-37 and BUG-38 dropped as duplicates, DEDUPE.md). - Owner decision 2026-10-31 (Q-PQ-4): "yes, capped 512 chars" — every row stores an answer summary.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#99
No description provided.