Resolver([options])


创建新的解析器。

🌐 Create a new resolver.

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