Skip to content
项目

关于

抓取 DNS 日志、检测异常,最终弄清网络中发生了什么。连接 DNS 服务器与数据栈之间缺失的一环。

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

DNS-collector

release docker Go version Go tests Go coverage Go bench

What is DNS-collector?

DNS-collector is a lightweight tool that captures DNS queries and responses from your DNS servers, processes them intelligently, and sends clean data to your monitoring, analytics and security systems.

What it does:

  • Captures at scale: Ingests streams from BIND, PowerDNS, Unbound, etc., via high-speed DNStap protocol or live wire packet capture.
  • Filters & normalizes: Discards noise (health checks, internal probes, spam) at wire speed before reaching storage.
  • Enriches on-the-fly: Decorates records with GeoIP, ASN, threat intelligence, metadata, and custom tags.
  • Streams everywhere: Dispatches batched events to ClickHouse, Kafka, Loki, Elasticsearch, Syslog, Prometheus, and more.

Why DNS-collector?

The missing high-performance data collector between DNS servers and your SIEM/observability/analytics stack.

  • From Homelabs to Enterprises: High-performance DNS telemetry pipeline with a lightweight footprint for any scale of DNS infrastructure (BIND, PowerDNS, Unbound, etc.)
  • DNS-Native & Edge Processing: Understands EDNS, query types, latency tracking, and anonymizes user IPs before storage.
  • Flexible outputs: Files, syslog, databases, monitoring tools and more...
  • Production ready: Used in real networks, tested with major DNS servers
  • Enhanced DNStap: TLS encryption, compression, and more metadata capabilities

🚀 Quick Start

Download the latest release and create a simple config.yml pipeline:

pipelines:
  - name: tap
    dnstap:
      listen-ip: 0.0.0.0
      listen-port: 6000
    transforms:
      normalize:
        qname-lowercase: true
    routing-policy:
      forward: [ console ]
  - name: console
    stdout:
      mode: text

Default setup listens on tcp/6000 for DNStap streams and outputs to stdout.

Run the collector:

./dnscollector -config config.yml

run

📚 Documentation

Topic Description
📝 Formats Supported output formats (text, JSON, PCAP, Jinja2, etc.)
🔧 Configuration Complete config reference
📥 Collectors Input sources (network packet sniffer, DNStap server, etc.)
📤 Loggers Output destinations (Kafka, Prometheus, syslog, Loki, etc.)
🔄 Transformers Data enrichment options
🐳 Docker Container deployment
🔍 Examples Ready-to-use configs
🔗 Sources & Sinks Integration with popular tools and DNS servers
⭐ Enhanced DNStap Enhanced DNSTap features
📊 Telemetry REST API and Prometheus metrics
⚡ Performance Tuning Performance tuning guide

👥 Contributions

Contributions are welcome! Check out:

🧰 Related Projects:

探索相关项目

加载中…