Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

happy-dns如何与cdn配合? #1

Open
linyize opened this issue Jul 15, 2015 · 6 comments
Open

happy-dns如何与cdn配合? #1

linyize opened this issue Jul 15, 2015 · 6 comments

Comments

@linyize
Copy link

linyize commented Jul 15, 2015

比如需要定位到就近的cdn节点

@longbai
Copy link
Contributor

longbai commented Jul 16, 2015

优先选择local dns, cdn会跟据这个dns server请求IP位置返回就近节点。然后114 也是全国多处节点,cdn根据dns 请求来源 来判断地址。httpdns 就直接向cdn 请求最近的IP。

@longbai
Copy link
Contributor

longbai commented Jul 16, 2015

这个库 好处是 1 当本地dns 服务器解析不出来时 换成114 2)有些劫持判断,如果是劫持就换解析服务器 3 可以灵活接入多个dns 服务器

@longbai
Copy link
Contributor

longbai commented Jul 16, 2015

也可以用阿里的dns, 支持edns, 解析的结果比较准确。

@pingguoilove
Copy link

@longbai 请问你说的“有些劫持判断”怎么判断的呢?

@longbai
Copy link
Contributor

longbai commented Mar 6, 2016

@pingguoilove 看代码 hijack 部分

@pingguoilove
Copy link

@longbai 看到了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants