Release 下载Mosdns · GitHub Release 历史版本 · 三路反代镜像

最新正式版v5.3.4

本区块同步 Mosdns 的官方 GitHub Release,并为最近版本生成 三路反代镜像加速下载通道。 默认展开最新正式版;如果项目只有预发布版,会在版本旁单独标注。下载按钮会先进入本站确认页,可继续下载或复制真实链接。

最新正式版发布 2026-01-11共 100 个版本共 1025 个文件本页展示最近 5 个版本⭐ 3,629License GPL-3.0github.com/IrineSistiana/mosdns

怎么挑:Windows 优先 .exe / .msi;macOS 优先 .dmg;Linux 选 .deb / .rpm / .AppImage;Android 选 .apk;带 .sig / .asc / .sha256 的是校验文件,不是安装包。 下载慢:从右侧三路反代列里挑一个能通的点开;复制按钮复制真实目标链接,方便放进下载器。

为控制页面体积,本页只展示最近 5 个版本、每版最多 48 个文件;完整历史请查看 IrineSistiana/mosdns Releases

v5.3.42026-01-1112 个文件正式版
文件 / 平台大小官方直链反代 · ghproxy.net反代 · ghfast.top反代 · mirror.ghproxy.com
mosdns-darwin-amd64.zipmacOS6.9 MB
mosdns-darwin-arm64.zipmacOS6.3 MB
mosdns-freebsd-amd64.zip压缩包6.7 MB
mosdns-linux-amd64.zipLinux7.0 MB
mosdns-linux-arm-5.zipLinux6.6 MB
mosdns-linux-arm-6.zipLinux6.6 MB
mosdns-linux-arm-7.zipLinux6.6 MB
mosdns-linux-arm64.zipLinux6.3 MB
mosdns-linux-mips64le-hardfloat.zipLinux6.1 MB
mosdns-linux-mipsle-softfloat.zipLinux6.3 MB
mosdns-linux-ppc64le.zipLinux6.3 MB
mosdns-windows-amd64.zipWindows6.0 MB
v5.3.32024-08-1412 个文件正式版
文件 / 平台大小官方直链反代 · ghproxy.net反代 · ghfast.top反代 · mirror.ghproxy.com
mosdns-darwin-amd64.zipmacOS6.4 MB
mosdns-darwin-arm64.zipmacOS5.9 MB
mosdns-freebsd-amd64.zip压缩包6.2 MB
mosdns-linux-amd64.zipLinux6.4 MB
mosdns-linux-arm-5.zipLinux6.0 MB
mosdns-linux-arm-6.zipLinux6.0 MB
mosdns-linux-arm-7.zipLinux6.0 MB
mosdns-linux-arm64.zipLinux5.9 MB
mosdns-linux-mips64le-hardfloat.zipLinux5.5 MB
mosdns-linux-mipsle-softfloat.zipLinux5.7 MB
mosdns-linux-ppc64le.zipLinux5.9 MB
mosdns-windows-amd64.zipWindows6.3 MB
v5.3.12023-11-0612 个文件正式版
文件 / 平台大小官方直链反代 · ghproxy.net反代 · ghfast.top反代 · mirror.ghproxy.com
mosdns-darwin-amd64.zipmacOS6.2 MB
mosdns-darwin-arm64.zipmacOS5.9 MB
mosdns-freebsd-amd64.zip压缩包5.9 MB
mosdns-linux-amd64.zipLinux6.1 MB
mosdns-linux-arm-5.zipLinux5.8 MB
mosdns-linux-arm-6.zipLinux5.8 MB
mosdns-linux-arm-7.zipLinux5.8 MB
mosdns-linux-arm64.zipLinux5.6 MB
mosdns-linux-mips64le-hardfloat.zipLinux5.3 MB
mosdns-linux-mipsle-softfloat.zipLinux5.4 MB
mosdns-linux-ppc64le.zipLinux5.6 MB
mosdns-windows-amd64.zipWindows6.0 MB
v5.3.02023-11-0112 个文件正式版
文件 / 平台大小官方直链反代 · ghproxy.net反代 · ghfast.top反代 · mirror.ghproxy.com
mosdns-darwin-amd64.zipmacOS6.2 MB
mosdns-darwin-arm64.zipmacOS5.9 MB
mosdns-freebsd-amd64.zip压缩包5.9 MB
mosdns-linux-amd64.zipLinux6.1 MB
mosdns-linux-arm-5.zipLinux5.8 MB
mosdns-linux-arm-6.zipLinux5.8 MB
mosdns-linux-arm-7.zipLinux5.8 MB
mosdns-linux-arm64.zipLinux5.6 MB
mosdns-linux-mips64le-hardfloat.zipLinux5.3 MB
mosdns-linux-mipsle-softfloat.zipLinux5.4 MB
mosdns-linux-ppc64le.zipLinux5.6 MB
mosdns-windows-amd64.zipWindows6.0 MB
v5.3.0-rc02023-10-2912 个文件预发布版
文件 / 平台大小官方直链反代 · ghproxy.net反代 · ghfast.top反代 · mirror.ghproxy.com
mosdns-darwin-amd64.zipmacOS6.2 MB
mosdns-darwin-arm64.zipmacOS5.9 MB
mosdns-freebsd-amd64.zip压缩包5.9 MB
mosdns-linux-amd64.zipLinux6.1 MB
mosdns-linux-arm-5.zipLinux5.8 MB
mosdns-linux-arm-6.zipLinux5.8 MB
mosdns-linux-arm-7.zipLinux5.8 MB
mosdns-linux-arm64.zipLinux5.6 MB
mosdns-linux-mips64le-hardfloat.zipLinux5.3 MB
mosdns-linux-mipsle-softfloat.zipLinux5.4 MB
mosdns-linux-ppc64le.zipLinux5.6 MB
mosdns-windows-amd64.zipWindows6.0 MB

本页加速下载用到的 3 个 GitHub 反代镜像

反代前缀说明
ghproxy.nethttps://ghproxy.net/老牌备份
ghfast.tophttps://ghfast.top/新生快线
mirror.ghproxy.comhttps://mirror.ghproxy.com/子域名

反代是第三方公益服务,单个通道可能临时挂掉,多挑几个再判断网络是否有问题。所有反代均为 HTTPS,文件内容与 GitHub 原始 Release 字节一致,可放心做 SHA256 校验。

GitHub 仓库简介:一个 DNS 转发器 · 许可 GPL-3.0 · ⭐ 3,629

Mosdns 是 IrineSistiana 维护的插件化 DNS 转发器,5K+ stars。核心能力:YAML 配置 + 多上游并发 + 国内外分流 + DNS 缓存。对比 AdGuardHome:AGH 带 Web UI、适合家庭去广告;Mosdns 专注 DNS 转发,性能更高,适合进阶用户和 OpenWrt 场景。两者可以串联用。

项目定位

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% 走缓存。

DNS 分流配置示例

下载 geosite-cn.txt:从 v2ray-rules-dat 仓库 Releases 提取,或用 Mosdns 自带工具生成。

配套使用

Mosdns 是 DNS 工具,需配合代理客户端 + 节点订阅:

协议兼容和规则集会随客户端更新变化;正文没有覆盖的系统版本,以维护者文档和当前 Release 说明为准。安装包只从维护者仓库、Release、应用商店或系统包源获取。

相关阅读