解决方法
对于
Linux系统,我使用/etc/resolv.conf中的超时和旋转选项……我通常将DNS超时降低到1秒.
timeout:n sets the amount of time the resolver will wait for a response from a remote name server before retrying the query via a different name server. Measured in seconds,the default is RES_TIMEOUT (currently 5,see <resolv.h>). The maximum value for this option is silently capped to 30.
和
rotate sets RES_ROTATE in _res.options,which causes round robin selection of nameservers from among those listed. This has the effect of spreading the query load among all listed servers,rather than having all clients try the first listed server first every time.