Skip to content
Back to skills

Dns Adblock Engine

ASecurity

Use when building DNS ad-blocking with blocklist matching.

  • 2 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 10, 2026
ai-agentspythonrustgo

Works with

  • cli

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill dns-adblock-engine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dns Adblock Engine?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dns Adblock Engine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-dns-adblock-engine/badge)](https://www.skillsdirectory.com/skills/loopyluci-dns-adblock-engine)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dns-adblock-engine
title: DNS Ad-Blocking Engine
description: Use when building DNS ad-blocking with blocklist matching.
category: networking
tags: [dns, adblock, hickory, rust, blocklist, filtering]
---

# DNS Ad-Blocking Engine

**Trigger**: Use when building DNS-level ad blocking with blocklist parsing and filtering.

## Key Libraries
- **Rust**: `hickory-dns`, `hickory-client`, `hickory-proto`, `adblock` (Brave's engine)
- **Python**: `dnspython`, `asyncio`
- **Clojure**: `clara-rules` for rule-based blocklist decisions

## Implementation
1. Primary engine in Rust using `hickory-dns` for DNS protocol handling
2. Blocklist parser supporting EasyList (`||domain.com^`), hosts (`0.0.0.0 domain.com`), plain domains
3. Multi-strategy matcher: Hash set exact (O(1)) → wildcard suffix trie → subdomain walk → regex
4. LRU DNS cache using Rust's `lru` crate with configurable TTL per record type
5. Bloom filter pre-check against massive blocklists (millions of entries)

## Connected Skills
`encrypted-dns-resolver`, `dns-cache-layer`, `blocklist-manager`, `packet-capture-engine`

## Pitfalls
- Hickory DNS async runtime conflicts — use separate Tokio runtime for DNS vs packet capture
- Aho-Corasick automaton rebuild is expensive — batch domain updates
- Bloom filter false positives require exact-match fallback chain

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.