Skip to content

Ignore received PTR and local DNS records - #12

Merged
ckcameron merged 1 commit into
mainfrom
fix/ignore-local-dns-records
Nov 13, 2026
Merged

ckcameron merged 1 commit into
mainfrom
fix/ignore-local-dns-records

Conversation

@ckcameron

Copy link
Copy Markdown
Owner

A feed line such as 7.100.51.198.in-addr.arpa. 300 IN PTR target.example. could add both names to a blocklist. The parser now skips PTR records as a whole, filters local and reverse-zone names, and skips DNS records that point to local addresses or local aliases.

Forward enrichment accepts only the requested A or AAAA record type and ignores answers with a local canonical name. Existing local-IP filtering still applies to returned addresses.

All 39 unit tests passed. Regression coverage includes feed records, additional PTR records in a DNS response, and a forward lookup that follows a CNAME into .local.

@ckcameron
ckcameron merged commit 545667c into main Nov 13, 2026
8 checks passed
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