跳至正文
Wener Notes

blocky

约 1 分钟阅读
    • Apache-2.0, Go
    • Blocking
    • 支持自定义规则
    • 支持多协议
      • DNS over UDP and TCP
      • DNS over HTTPS (aka DoH)
      • DNS over TLS (aka DoT)
    • 支持 DNSSEC, eDNS
    • 多节点可使用 Redis 缓存
    • queryLog 可写入数据库 - mysql, postgresql, csv, csv-client, console
  • 参考
bash
curl -L -o blocky.tar.gz https://github.com/0xERR0R/blocky/releases/download/v0.24/blocky_v0.24_$(uname -o)_$(uname -m).tar.gz
tar zxvf blocky.tar.gz

./blocky version
mv blocky ~/bin/

curl -LO https://0xerr0r.github.io/blocky/latest/config.yml
# 注释掉 redis.address
./blocky serve -c config.yaml
TypeScript
type logEntry struct {
	RequestTS     *time.Time `gorm:"index"`
	ClientIP      string
	ClientName    string `gorm:"index"`
	DurationMs    int64
	Reason        string
	ResponseType  string `gorm:"index"`
	QuestionType  string
	QuestionName  string
	EffectiveTLDP string
	Answer        string
	ResponseCode  string
	Hostname      string
}

关联信息

反向链接、本文链接的其他页面和外部资料。

反向链接

  • DNS Awesome
    笔记 · 0xERR0R/blocky

    选择支持分流的 DNS 服务、支持 DoH/DoT 解析的服务 · AdGuard、PiHole · 默认走国内 DNS · 因为国内很多服务 CDN 依赖 DNS 解析,使用国外 DNS 可能导致 CDN 出问题,访问非常慢或打不开 · 国内 DNS 更快

参考资料

GitHub3 条
其他外链2 条
最近更新commit 521899b编辑