百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

freedns-go

> 编程语言
开源

针对中国用户优化的 DNS 服务器。

184 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

针对中国用户优化的 DNS 服务器。

freedns-go

Optimized DNS Server for Chinese users.

freedns-go is CDN friendly since it prefers the domestic DNS upstream for websites having servers in mainland China.

Usage

Download the prebuilt binary from the releases page. Use -f 114.114.114.114:53 to set the upstream in China, and use -c 8.8.8.8:53 to set the upstream that returns usable results for foreign sites.

sudo ./freedns-go -f 114.114.114.114:53 -c 8.8.8.8:53 -l 0.0.0.0:53

Issue a request to the server just started:

host baidu.com 127.0.0.1
host google.com 127.0.0.1

baidu.com is dispatched to 114.114.114.114, but google.com is dispatched to 8.8.8.8 because its server is not located in China.

How does it work?

freedns-go tries to dispatch the request to a DNS upstream located in China, which is fast but maybe poisoned. If it detected any IP addresses not belonged to China, which means there is a chance that the domain is spoofed, then freedns-go uses the foreign upstream.

The cache policy is lazy cache. If there are some records are expired but in the cache, it will return the cached records and update it on the background.

Note: freedns-go just dispatches your queries to the optimal upstreams. Your network should be able to reach those upstreams (e.g. 8.8.8.8). You can do that by port forwarding, or any ways you like..

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言