Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

请问如何写hosts #8

Closed
RiverKy opened this issue Nov 14, 2020 · 11 comments
Closed

请问如何写hosts #8

RiverKy opened this issue Nov 14, 2020 · 11 comments

Comments

@RiverKy
Copy link

RiverKy commented Nov 14, 2020

具体地,hosts里填写的域名应该是什么呢?
因为Cloudflare给出的DNS record都是A,并非CNAME……我不知道该如何操作hosts以解析最快的IP地址。

@XIU2
Copy link
Owner

XIU2 commented Nov 14, 2020

写什么域名取决于你的需求啊,你常访问的哪个国外网站用的是 Cloudflare CDN,那你就写这个网站的域名。

@RiverKy
Copy link
Author

RiverKy commented Nov 14, 2020

懂了,但是如果这样我倒觉得没必要。因为我的愿景就是所有用Cloudflare CDN的网站都上最快IP地址……

写什么域名取决于你的需求啊,你常访问的哪个国外网站用的是 Cloudflare CDN,那你就写这个网站的域名。

@XIU2
Copy link
Owner

XIU2 commented Nov 14, 2020

你这要求确实无法实现,因为无法获得所有 Cloudflare CDN 的网站域名,我这个项目只是我个人的小需求,自给自足。

@XIU2
Copy link
Owner

XIU2 commented Nov 14, 2020

另外对一些使用 Cloudflare CDN 的站长也有用。

@RiverKy
Copy link
Author

RiverKy commented Nov 14, 2020

我自己就是哈哈。
btw,您使用的测速png是个什么样的文件呢?我尝试打开但是文件损坏了:
image

@XIU2
Copy link
Owner

XIU2 commented Nov 14, 2020

@SkyYkb 就只是在 Linux 上生成的 300MB 空文件,只是用来下载测速的。

@RiverKy
Copy link
Author

RiverKy commented Nov 14, 2020

这,行吧……
祝好,再见👋。

@RiverKy RiverKy closed this as completed Nov 14, 2020
@XIU2
Copy link
Owner

XIU2 commented Nov 14, 2020

我也只是把我经常访问的网站域名(Cloudflare CDN)加到 Hosts 里,自己维护一份自用的。
一劳永逸是没办法了。

@XIU2
Copy link
Owner

XIU2 commented Nov 14, 2020

对了,根据反馈,我也发现有一些人使用 Cloudflare CDN 来科学上网(用我的工具测速最快的 CDN IP,来提高代理速度)。

通过 Cloudflare Workers 服务创建代理网站。。。
代理服务器用网站伪装的同时,还可以搭配 Cloudflare CDN 来解决被墙 IP。。。

@YujiaCheng1996
Copy link

YujiaCheng1996 commented Nov 17, 2020

懂了,但是如果这样我倒觉得没必要。因为我的愿景就是所有用Cloudflare CDN的网站都上最快IP地址……

写什么域名取决于你的需求啊,你常访问的哪个国外网站用的是 Cloudflare CDN,那你就写这个网站的域名。

单个ip可能占不满本地带宽,也可能会拥堵,单点故障等。
还有可能因为长时间大流量访问同一个境外ip被运营商特别关照和谐。。。
当然过多ip也没必要。

@XIU2
Copy link
Owner

XIU2 commented Mar 11, 2021

@SkyYkb 你的愿望实现了,一劳永逸的方法 #71

Repository owner locked and limited conversation to collaborators Mar 1, 2023
@XIU2 XIU2 converted this issue into discussion #357 Mar 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants