The answered-query event carries the opcode, where the answer came from, the upstream, the elapsed time, the block detail and an answer summary #101
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#102 The query log stores block, source, upstream, timing, opcode and answer-summary columns and can be searched by them
lantea-one/ninlil
Reference
lantea-one/ninlil#101
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
DnsQueryProcessingPipelinepublishesDnsQueryAnsweredEventwith seven fields (src/dotnet/src/Ninlil.Dns.Server.Core/Pipeline/DnsQueryProcessingPipeline.cs:848-858).Handled(response)(src/dotnet/src/Ninlil.Dns.Server.Core/Resolution/DnsQueryResolution.cs:16-43), so the pipeline cannot tell an authoritative answer from a forwarded, cached or recursive one.src/dotnet/src/Ninlil.Dns.Server.QueryLog/DnsQueryLogSubscriber.cs:81).What changes
Ninlil.Dns.Server.Core/Resolution/: add a mutable per-queryDnsQueryOutcomeclass, carried as an init property on theDnsQueryContextrecord (DnsQueryContext.cs:39). It has these fields:AnswerSource(newDnsAnswerSourceEnum:Authoritative,Cache,Forwarder,Recursive,Rewrite,Blocked,Serverfor REFUSED/FORMERR/NOTIMP/cookie/TSIG replies and hygiene answers,ZoneTransfer)Upstream(forwarder name;recursivefor recursive resolution, so the upstream set stays bounded for #112)AuthoritativeQueryResolver,ForwarderQueryResolverplusCaching/ForwardedResponseCache(a cache hit setsCache),RecursiveQueryResolver(its cache too), andRewriteTargetChaser/the rewrite branch (DnsQueryProcessingPipeline.cs:743-768).Stopwatch.GetTimestamp()at entry.Blockedwith the #100 decision at:703-713,:727-737and:784-793.DnsQueryAnsweredEventgains these fields, added at the end with defaults so existing callers compile and an older broker consumer still reads the payload:Opcode,AnswerSource,Upstream,ElapsedMicroseconds,IsAuthenticDataBlockKind(fromDnsFilterMatchKindEnumplus the schedule kinds),BlockListId,BlockListName,BlockRuleAnswerSummary: presentation text of the Answer RRs, cut at 512 characters. Build it only when a subscriber needs it (the query log is enabled), so the cost is not paid when logging is off.Ninlil.Dns.Server.Authoritative/Transfer/ZoneTransferRequestRunner.cs:120setsZoneTransfer.EventBusBenchmarks.cs:91,DnsServerEventBusTests.cs:250,288,622).Acceptance
src/dotnet/tests/Ninlil.Dns.Server.Core.Tests. A blocked domain publishesAnswerSource == BlockedandBlockListName == "Ads". An UPDATE publishesOpcode == Update. A second identical forwarded query publishesAnswerSource == Cache(src/dotnet/tests/Ninlil.Dns.Server.Forwarding.Tests).AnswerSummaryof at most 512 characters.ElapsedMicroseconds > 0for every published event.Source
audit-feature-parity.md§2A #2; bughunt-plan.md:539 (B20-3; absorbs BUG-36).