Bboysoul's Blog

首页 公告 RSS

又更新了下dns服务器

June 26, 2023 本文有 233 个字 需要花费 1 分钟阅读

简介

我又又又更新了下 dns 服务器

操作

这次是把 adguard 改成了blocky

下面是现在的配置

upstream:
  default:
    - 8.8.4.4
    - 8.8.8.8
    - 1.1.1.1
    - 208.67.222.123
    - 208.67.220.123
    - 9.9.9.9
upstreamTimeout: 3s
ports:
  dns: 53
  http: 4000
log:
  level: info
  format: json
  timestamp: true
caching:
  minTime: 1h
  maxTime: 2h
  prefetching: true
  maxItemsCount: 0
redis:
  address: 127.0.0.1:6379
  password: xxxxx
  database: 11
  required: true
  connectionAttempts: 10
  connectionCooldown: 3s
prometheus:
  enable: true
  path: /metrics
filtering:
  queryTypes:
    - AAAA
queryLog:
  type: csv
  target: /logs
  logRetentionDays: 0
ede:
  enable: true

还有现在的 docker-compose.yaml

version: "2.1"
services:
  blocky:
    image: ghcr.io/0xerr0r/blocky:v0.21
    container_name: blocky
    restart: always
    ports:
      - 4000:4000
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./config.yml:/app/config.yml
      - ./logs:/logs

logs这个目录要给 777 权限

换成 blocky 之后貌似 dns 请求变快了不少

blocky 最吸引我的就是两点

  • 支持 prometheus
  • 支持 redis 缓存

作为你在外网的 doh dns 服务器还是可以的

还有欢迎使用我的 doh 服务器哈

欢迎关注我的博客www.bboy.app

Have Fun


Tags:

本站总访问量 本站总访客数