如何解决DNS劫持问题?

小程序 文章 2020-07-31 14:01 546 0 全屏看文

AI助手支持GPT4.0

如何解决DNS劫持问题?

最近线上大量出现 request: fail报错

经过开发人员到本地验证,当地存在运营商dns劫持问题,投诉效果不好,在小程序上是否能够有什么技术手段防止dns劫持?

Recently, there are a large number of requests: fail reports on the line. After the developers go to the local verification, there is a DNS hijacking problem of the operator in the local area. The complaint effect is not good. Is there any technical means to prevent DNS hijacking in the small program?

回答:

糖葫芦:

这啥逻辑!和小程序无关啊!你DNS被劫持是不是要求浏览器或网页能防止啊!呵呵

Yozosann.:不要来秀技术下限,dns被劫持的解决方案里 就常用的就是只连ip,直连的功能不得小程序提高? 真逗,答应我好好回去读读书好吗
糖葫芦:你发布个小程序连Ip试试
糖葫芦:呵呵!半桶水别在这晃荡好吧,解决方案还要看实际场景的!
citizen four:

迁移云服务器

stop eating:

防止DNS劫持,跟小程序没关系吧

Yozosann.:小程序网络请求框架是封装好的 也不能直连ip 所以问官方还有什么途径
stop eating:云函数
Yozosann.:??云函数你也得解析dns吧
stop eating:微信也被劫持吗?
Yozosann.:我们自己的后端不能全逗换微信的云函数啊
stop eating:那你想怎么办?后端不变,云函数用ip调后台接口啊

-EOF-

AI助手支持GPT4.0