-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
问题发现过程见这里
pymumu/smartdns#1657
最后猜测是不是代理工具传送dns解析的ip的时候,如果ip太多,比如ipv4达到33个,会导致错误
服务端会显示
ERROR tcp tunnel 127.0.0.1:14050 -> s3-us-west-1.amazonaws.com:443 connect failed, error: dns resolve s3-us-west-1.amazonaws.com:443 error: no record found for Query { name: Name("s3-us-west-1.amazonaws.com."), query_type: AAAA, query_class: IN }
ERROR tcp tunnel 127.0.0.1:18422 -> github-production-upload-manifest-file-7fdce7.s3.amazonaws.com:443 connect failed, error: dns resolve github-production-upload-manifest-file-7fdce7.s3.amazonaws.com:443 error: no record found for Query { name: Name("github-production-upload-manifest-file-7fdce7.s3.amazonaws.com."), query_type: AAAA, query_class: IN }
实际这两个域名是没有ipv6的,只有v4,所以会导致网页打不开
后经尝试,我把s3.amazonaws.com返回的ipv4限制到20个不会出错了,可以正常浏览访问
但是不知道这里出错是因为ip数量原因还是总体字节大小一类的
保险起见,我现在把返回ip数量限制在10个了,v4和v6最大各10各,目前一切正常
还请大佬给看看这怎么个事啊