自己用node写了一个dns解析器,可以把包含cloudflare查询的结果中的IP替换为自己设置的优选IP。 #599
catscarlet
started this conversation in
分享
Replies: 1 comment
-
值得鼓励。 不过说实话,Node 使用起来确实没有 Go 方便。。。 你这个 Node 建议直接把包括 Node 本体在内的所有文件都打包好再发布 releases,否则如果让用户自己安装配置 Node 的话,估计能劝退不少人。。。
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
域名解析结果替换JS DNS-Response-Replacer-JS
本质上应该和 #317 的 mosdns 方式相似,但是由于是用Node写的,配置方式要比 mosdns 简单得多,基本可以无视平台限制,只要能跑 node 的机器都能跑。
目前刚写完文档的大部分内容。
反正运行就是复制文件到本地然后把各个配置改成优选然后
node dns-response-replacer-js.js
就能跑起来。还没考虑好如何安装在各种主机上。尤其是这是个node项目,想要跑在windows上做DNS服务器还蛮麻烦的,我没有在 Windows 上写过服务。Openwrt相同。
比较惊奇的就是好多大网站也都用cloudflare做CDN,比想象中的范围要大多了。
Beta Was this translation helpful? Give feedback.
All reactions