Skip to content

feat(dns): attribute connections to hostnames via observed DNS responses#249

Open
domcyrus wants to merge 1 commit into
mainfrom
dns-attribution
Open

feat(dns): attribute connections to hostnames via observed DNS responses#249
domcyrus wants to merge 1 commit into
mainfrom
dns-attribution

Conversation

@domcyrus
Copy link
Copy Markdown
Owner

@domcyrus domcyrus commented May 3, 2026

Build an IP to domain cache from DNS responses on the wire and tag connections that lack SNI / Host (encrypted QUIC, plain TCP, fragmented ClientHello) with the matching hostname, prefixed with ~ in the UI.

Event-driven: connections that miss the cache at creation enroll into a side index keyed by their remote IP. The next matching DNS response drains the waiters in O(matches), so per-packet attribution work is zero. A 10s window applies symmetrically to cache freshness and pending enrollment age, matching Little Snitch's MAX_QUERY_AGE.

Build an IP to domain cache from DNS responses on the wire and tag
connections that lack SNI / Host (encrypted QUIC, plain TCP, fragmented
ClientHello) with the matching hostname, prefixed with ~ in the UI.

Event-driven: connections that miss the cache at creation enroll into a
side index keyed by their remote IP. The next matching DNS response
drains the waiters in O(matches), so per-packet attribution work is
zero. A 10s window applies symmetrically to cache freshness and pending
enrollment age, matching Little Snitch's MAX_QUERY_AGE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant