对象 options 现在接受 tries 选项。
options
tries
构造函数现在接受 options 对象。唯一支持的选项是 timeout。
timeout
新增于: v8.3.0
创建新的解析器。
¥Create a new resolver.
options <Object>
timeout <integer> 查询超时(以毫秒为单位),或 -1 使用默认超时。
-1
¥timeout <integer> Query timeout in milliseconds, or -1 to use the default timeout.
tries <integer> 解析器在放弃之前尝试联系每个名称服务器的尝试次数。默认值:4
4
¥tries <integer> The number of tries the resolver will try contacting each name server before giving up. Default: 4