Event ·Multi-source

ESP32-C3 上跑通 DNS 广告拦截:53.7 万域名只占 50 KB 内存

一个开源项目在 ESP32-C3 上实现了类似 Pi-hole 的 DNS 广告拦截。537,000 个广告域名以 40 位 FNV-1a 哈希排序存进 flash,查询用二分查找,整个进程只占约 50 KB RAM。命中域名 10 ms 内返回 0.0.0.0,未命中则转发上游 DNS。固件与黑名单支持 WiFi OTA 升级,黑名单可由 GitHub Actions 每周自动更新,自带 Web 面板可按客户端查看拦截数、封禁或加白名单。

Current read

有人把 Pi-hole 塞进了 ESP32-C3,53 万个广告域名二分查找匹配,只用 50 KB 内存,10 毫秒拦截,成本比树莓派方案低太多。

5 sources31° AI heatLast updated 2026/10/6 01:00:15

Evidence

5 sources
Related source 4歸藏(guizang.ai)
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.