Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions analysis/spagooper.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,16 @@ func (analyzer *Analyzer) ScoopDNS(ctx context.Context, bars *tea.Program) error
-- keep tlds which had zero non-dns-server ips in direct connections
),
historical AS (
SELECT min(first_seen) AS first_seen, cutToFirstSignificantSubdomain(fqdn) as tld
FROM metadatabase.historical_first_seen
LEFT JOIN exploded_dns USING tld
SELECT
min(first_seen) AS first_seen,
tld
FROM (
SELECT
first_seen,
cutToFirstSignificantSubdomain(fqdn) AS tld
FROM metadatabase.historical_first_seen
) AS historical
LEFT JOIN zeeklogs.exploded_dns USING (tld)
GROUP BY tld
),
totaled_exploded AS (
Expand Down