登录 注册

dnsmasq-china-list

去点 Star
其他
6,136
Stars
954
Forks
196
Watchers
53
Open Issues
NOASSERTION
许可证
Ruby
语言
2013-06-02
创建时间
2026-10-30
最近更新

项目能做什么

针对中国大陆优化的 DNS 服务器配置列表,chnroutes 的最佳搭档。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
dnsmasq-china-list
==================

Chinese-specific configuration to improve your favorite DNS server. Best partner for chnroutes.

- Improve resolve speed for Chinese domains.

- Get the best CDN node near you whenever possible, but don't compromise foreign CDN results so you also get best CDN node for your VPN at the same time.

- Block ISP ads on NXDOMAIN result (like 114so).

Details
=======

- `accelerated-domains.china.conf`: General domains to be accelerated.

  These domains have a better resolving speed and/or result when using a Chinese DNS server.

  To determine if a domain is eligible, one of the criteria below must be met:

 - The domain's NS server is located in China mainland.

 - The domain will resolve to an IP located in China mainland when using a Chinese DNS server, but _not_ always do when using a foreign DNS server (For example, CDN accelerated sites that have node in China). This however does _not_ include those having node _near_ China mainland, like in Japan, Hong Kong, Taiwan, etc.

  Please don't add subdomains if the top domain is already in the list. This includes all .cn domains which are already matched by the `/cn/` rule.

- `google.china.conf`: Google domains to be accelerated.

  These domains are resolved to Google China servers when using a Chinese DNS. In most conditions this will yield better page load time for sites using Google's web services, e.g. Google Web Fonts and AdSense.

  Bear in mind that they are _not_ considered stable. **Use at your own risk**.

- `apple.china.conf`: Apple domains to be accelerated.

  Some ISPs (often smaller ones) have problem accessing Apple's assets using their China mainland CDN servers. Please consider remove this file if that happens to you. See #156 for some more info.

- `bogus-nxdomain.china.conf`: Known addresses that are hijacking NXDOMAIN results returned by DNS servers.

Usage
=====

Automatic Installation (recommended)
------------------------------------

1. Fetch the installer from github (or a mirror): `wget https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/install.sh`
2. (Optional) Edit it to use your favorite DNS server and/or another mirror to download the list.
3. Run it as root: `sudo ./install.sh`

You can save the installer and run it again to update the list regularly.

Manual Installation
-------------------

1. Place accelerated-domains.china.conf, bogus-nxdomain.china.conf (and optionally google.china.conf, apple.china.conf) under /etc/dnsmasq.d/ (Create the folder if it does not exist).
2. Uncomment "conf-dir=/etc/dnsmasq.d" in /etc/dnsmasq.conf
3. (Optional) Place dnsmasq-update-china-list into /usr/bin/
4. (Optional) Make custom DNS server configuration and/or other services' configuration.

  ```shell
  # change the default DNS server to 202.96.128.86
  make SERVER=202.96.128.86 dnsmasq
  # generate unbound's configuration
  make unbound
  # generate bind's configuration
  make bind
  # full example of generating dnscr
阅读完整原文

项目深度分析 AI 生成

出海/跨境企业智能分流 DNS 托管服务 (Smart Gateway SaaS)

产品构想基于该项目及类似规则,封装为开箱即用的云端或边缘智能DNS服务,提供海外业务(如ERP/SaaS/GitHub)快速访问与国内本地服务(CDN、微信等)免配置双轨智能解析与分流策略。
核心功能按月订阅的Anycast DoH/DoT解析接口、多ISP智能分流、国内国外CDN最优化、访问合规审计日志与Web配置面板
目标用户跨境电商中小团队、外企中国办事处、重度依赖海外SaaS的小型研发团队
难度/周期中等 · 1-2个月 · 成本:数台国内/海外多线路VPS(月成本约300-800元)、域名及SSL证书费用
收费模式按解析请求量与节点席位订阅付费(如 ¥99 - ¥399/月)
竞争风险在中国大陆运营未经许可的公共/商业递归DNS涉及通信监管风险,需严格限定私有专线内网使用场景;企业对网络可用性要求极高。
依据 AI推测

企业级局域网 SmartDNS 分流管理一体化软路由固件/镜像

产品构想打包集成 dnsmasq-china-list、MosDNS/SmartDNS、透明代理分流策略的商业版轻量系统镜像,提供图形化一键部署与企业级规则自动热更新服务。
核心功能自动热更新国内加速白名单、DNS防污染与分流配置、多出口负载均衡、硬件设备一键烧录/Docker部署支持
目标用户中小企业网络管理员、具备多分支机构的企业IT
难度/周期较低 · 2-3周 · 成本:极低(仅需个人开发环境及少量测试机)
收费模式按设备授权买断制售卖固件/镜像,或按年收取商业规则库自动同步服务费
竞争风险开源替代方案较多(如OpenWrt已有免费插件),商业版需极高易用性与技术支持门槛;存在潜在合规红线。
依据 数据支持的判断

高精度中国域名与CDN归属地商业情报 API

产品构想将该规则库的动态采集、校验清洗逻辑扩展为标准企业级域名属性识别与网络分流数据集,为安全厂商或CDN厂商提供域名本地化解析特征库。
核心功能国内/海外域名精确归属识别API、实时CDN分布画像、定期更新的规则库导出(支持格式包括Bind、Unbound、dnsmasq、CoreDNS)
目标用户网络安全审计软件厂商、SD-WAN硬件厂商、多云管理平台
难度/周期中等 · 1个月 · 成本:持续拨测扫描探针节点服务器(月成本约500元)
收费模式B2B API接口调用配额付费或年度数据授权费
竞争风险域名列表有公共开源版本,纯数据壁垒不高,需提供更高精度的检测报告或SLA支持才能吸引企业采购。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
dctxmei/v2ray-china-list 中文介绍暂未生成
V2Ray deployment of felixonmars/dnsmasq-china-list project
16 Go
jm33-m0/switchyomega-china-list 中文介绍暂未生成
Imported from felixonmars/dnsmasq-china-list for use with Sw
14 Shell
iyato/dnscrypt-proxy-china-forwarding-list 中文介绍暂未生成
Upstream: dnsmasq-china-list
10 -
imyip/dnsmasq-china-list-for-myself 中文介绍暂未生成
7 -
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2013-06-02,近 30 天仍在推送
社区活跃Star 6,136 / Fork 954 / Issue 53(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。