Resolver([options])


创建新的解析器。

【Create a new resolver.】

  • options <Object>
    • timeout <integer> 查询超时时间,单位为毫秒,或者使用 -1 来使用默认超时时间。
    • tries <integer> 解析器在放弃之前尝试联系每个名称服务器的次数。默认值: 4
    • maxTimeout <integer> 最大重试超时时间,单位为毫秒。 默认值: 0,禁用。