最近APP调试,网络请求发生错误 (-1003 a server with the specified hostname could not be found )。搜索到相同问题,没有解决答案,所以记录一下。
问题描述:
1.周期性出现,一般一分钟,十分钟,到半小时,持续一分多钟。
2.发生错误时,post请求可以通过浏览器请求到
3.安卓端也没有出现类似的问题
4.后端确定没有问题
解决:域名解析设置中,dns缓存时间过短,可以将dns缓存时间设置长一些,比如设置3600s,储存空间替换前改短即可,即更换云服务器前一小时 将dns 改回十分钟,即可及时更新dns
网友评论