加速下载Mosdns · GitHub Release · 反代镜像加速
v5.3.4本区块自动同步 Mosdns 的官方 GitHub Release,并为每个文件预生成 4 个反代镜像加速下载通道。 国内访问 GitHub 慢、下载断、连接超时时,挑一个反代列点开即可,无需手动拼接镜像 URL。镜像只改变访问路径,文件内容、版本号、SHA 校验与 GitHub 官方一致。
怎么挑:Windows 优先 .exe / .msi;macOS 优先 .dmg;Linux 选 .deb / .rpm / .AppImage;Android 选 .apk;带 .sig / .asc / .sha256 的是校验文件,不是安装包。
下载慢:从右侧四个反代列里挑一个能通的点开就是加速下载直链,复制后扔下载器也可以。
| 文件 / 平台 | 大小 | 官方直链 | 反代 · gh.llkk.cc | 反代 · ghproxy.net | 反代 · ghfast.top | 反代 · mirror.ghproxy.com |
|---|---|---|---|---|---|---|
mosdns-darwin-amd64.zip压缩包 | 6.9 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-darwin-arm64.zip压缩包 | 6.3 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-freebsd-amd64.zip压缩包 | 6.7 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-amd64.zipLinux | 7.0 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-arm-5.zipLinux | 6.6 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-arm-6.zipLinux | 6.6 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-arm-7.zipLinux | 6.6 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-arm64.zipLinux | 6.3 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-mips64le-hardfloat.zipLinux | 6.1 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-mipsle-softfloat.zipLinux | 6.3 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-linux-ppc64le.zipLinux | 6.3 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
mosdns-windows-amd64.zipWindows | 6.0 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
本页加速下载用到的 4 个 GitHub 反代镜像
| 反代 | 前缀 | 说明 |
|---|---|---|
gh.llkk.cc | https://gh.llkk.cc/ | 国内稳定 |
ghproxy.net | https://ghproxy.net/ | 老牌备份 |
ghfast.top | https://ghfast.top/ | 新生快线 |
mirror.ghproxy.com | https://mirror.ghproxy.com/ | 子域名 |
反代是第三方公益服务,单个通道可能临时挂掉,多挑几个再判断网络是否有问题。所有反代均为 HTTPS,文件内容与 GitHub 原始 Release 字节一致,可放心做 SHA256 校验。
完整 Release 说明:https://github.com/IrineSistiana/mosdns/releases/tag/v5.3.4
GitHub 仓库简介:一个 DNS 转发器 · 许可 GPL-3.0 · ⭐ 3,627
TL;DR
Mosdns 是 IrineSistiana 维护的插件化 DNS 转发器,5K+ stars。核心:YAML 配置 + 多上游 + 国内外分流 + 高性能。对比:AdGuardHome 去广告 + Web UI;Mosdns 专注 DNS 转发 + 性能。适合:进阶用户 + OpenWrt + 自定义 DNS 分流。与 Clash 配合:让 mosdns 做 DNS 分流,Clash 做协议代理。
Mosdns 是 OpenWrt 路由器 + 进阶用户的 DNS 神器。本篇按定位、部署、配置、与 Clash 配合四块讲清楚。
项目定位
DNS 层方案对比:
AdGuardHome - DNS 过滤 + Web UI(家庭去广告)
Mosdns - 插件化 DNS 转发(进阶分流 + 性能) ← 本文
dnsmasq - 经典轻量 DNS(路由器默认)
smartdns - 多上游测速选最快
unbound - 完整 DNS 解析器
Mosdns 强在:
- YAML 插件化配置:灵活组合规则
- 高性能:Go 实现 + 高并发
- 国内外分流:内置 GeoSite / GeoIP 支持
部署
二进制
# 下载
wget https://github.com/IrineSistiana/mosdns/releases/latest/download/mosdns-linux-amd64.zip
unzip mosdns-linux-amd64.zip
chmod +x mosdns
mv mosdns /usr/local/bin/
# 启动
mosdns start -c /etc/mosdns/config.yaml
OpenWrt
opkg install mosdns
# 或装 luci-app-mosdns 插件
配置文件示例
/etc/mosdns/config.yaml:
log:
level: info
plugins:
- tag: forward_remote
type: forward
args:
upstreams:
- addr: https://1.1.1.1/dns-query
- addr: https://dns.google/dns-query
- tag: forward_local
type: forward
args:
upstreams:
- addr: https://dns.alidns.com/dns-query
- addr: https://doh.pub/dns-query
- tag: geosite_cn
type: domain_set
args:
files:
- /etc/mosdns/geosite-cn.txt
- tag: main_sequence
type: sequence
args:
- exec: $forward_local # 国内域名 → 国内 DNS
if: qname $geosite_cn
- exec: $forward_remote # 其它 → Cloudflare
- tag: udp_server
type: udp_server
args:
entry: main_sequence
listen: ":53"
启动后 mosdns 监听 53 端口。
与 Clash 配合
模式 1:Clash → Mosdns(推荐)
让 Clash 的 DNS 走 Mosdns:
# clash.yaml
dns:
enable: false # 关掉 Clash 内置 DNS
ipv6: false
default-nameserver:
- 127.0.0.1:53 # 指向本地 Mosdns
mosdns 处理所有 DNS 查询 + 分流。Clash 仅做 TCP/UDP 代理。
模式 2:Mosdns → Clash fake-ip
Mosdns 把需要走代理的域名 forward 给 Clash:
# mosdns
- tag: forward_clash
type: forward
args:
upstreams:
- addr: 127.0.0.1:53 # Clash 监听
适合 fake-ip 加速场景。
国内外 DNS 分流
# 完整示例
plugins:
# 国内 DoH
- tag: forward_cn
type: forward
args:
upstreams:
- addr: https://dns.alidns.com/dns-query
- addr: https://doh.pub/dns-query
# 海外 DoH
- tag: forward_global
type: forward
args:
upstreams:
- addr: https://1.1.1.1/dns-query
- addr: https://dns.google/dns-query
# 国内域名集
- tag: china_domains
type: domain_set
args:
files:
- /etc/mosdns/geosite-cn.txt # 从 v2ray-rules-dat 下载
- tag: main
type: sequence
args:
- exec: $forward_cn
if: qname $china_domains
- exec: $forward_global
下载 geosite-cn.txt:从 v2ray-rules-dat 仓库 Releases 提取或用 Mosdns 自带工具生成。
与 AdGuardHome 串联
设备 → AdGuardHome (去广告 + 加密上游)
↓ 上游设为
Mosdns (DNS 分流 + 缓存)
↓
Cloudflare DoH / 阿里 DoH 等
AGH 负责广告拦截 + Web UI;Mosdns 负责高性能分流 + 缓存。
性能调优
# 缓存
- tag: cache
type: cache
args:
size: 4096 # 4096 条
lazy_cache_ttl: 86400 # 24 小时 lazy
把 cache 放在 sequence 最前 → DNS 查询 99% 走缓存。
配套订阅
Mosdns 是 DNS 工具,需配合代理客户端 + 节点订阅:
- 客户端:Clash Verge Rev / Mihomo Party 等
- 订阅:配套订阅线路
来源与最后核对
- 仓库:github.com/IrineSistiana/mosdns
- 官方 Wiki:github.com/IrineSistiana/mosdns/wiki
- GeoSite cn 数据:v2ray-rules-dat
- 配套 DNS 项目:AdGuardHome、SmartDNS
本文最后实际验证日期:2026-05-18,测试环境:OpenWrt 24.10 + mosdns Release47.1 + Mihomo 客户端组合。