A filter or schedule decision names the list, the matching rule and the check that blocked the query #100
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
#101 The answered-query event carries the opcode, where the answer came from, the upstream, the elapsed time, the block detail and an answer summary
lantea-one/ninlil
Reference
lantea-one/ninlil#100
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
DnsFilterDecisionhas onlyIsDeniedand a free-textReason(src/dotnet/src/Ninlil.Dns.Server.Core/Filtering/DnsFilterDecision.cs:14-20).DnsFilterEngine.EvaluateDomainAsyncloops over the lists but keeps only two booleans (src/dotnet/src/Ninlil.Dns.Server.Filtering/DnsFilterEngine.cs:133-149), so which list matched is lost. The same is true for CNAME targets (:336-360) and network lists (:564-580).What changes
Ninlil.Dns.Server.Core/Filtering/DnsFilterDecision.cs: addKind(a newDnsFilterMatchKindEnum:DomainList,CnameTarget,ResponseAddress,ClientSource),ListId(Guid?),ListName,MatchedRule(the entry value, or the CNAME target or address that matched). KeepReasonfor logs. Add aDenied(kind, listId, listName, matchedRule, reason)factory. KeepAllowedas one shared instance, so an allowed query allocates nothing.Ninlil.Dns.Server.Filtering/DnsFilterEngine.cs:DnsFilterListIndexmust be able to return the entry it matched, not only a bool. Add aTryMatch…alongsideContainsDomainandMatchesAnyPattern.Ninlil.Dns.Server.Core/ClientSchedule/DnsClientScheduleDecision(used byDnsClientScheduleEngine.cs:70): add a kind (ClientPause,GroupPause,Schedule) and the client or group id.Ninlil.Dns.Common/Enum/: the new enums, withEnumMembervalues like the existing enums.Acceptance
src/dotnet/tests/Ninlil.Dns.Server.Filtering.Tests. A domain on block list "Ads" (entryads.example) queried asx.ads.examplereturnsKind == DomainList,ListName == "Ads",MatchedRule == "ads.example". Further tests cover a wildcard entry, a CNAME target and a response address.Allowedinstance (a test asserts reference equality).--filter '*PipelineLatency*' --engines Sqlite --scale Small): numbers before and after go in the PR description, with no regression on allowed queries.dotnet test src/dotnet/tests/Ninlil.Dns.Server.Filtering.Tests,src/dotnet/tests/Ninlil.Dns.Server.ClientSchedule.Tests, and the whole solution, becauseNinlil.Dns.Server.CoreandNinlil.Dns.Commonare shared.Source
audit-feature-parity.md§2A #2 and #4.