Resolver([options])


版本历史
版本变更
v16.7.0, v14.18.0

对象 options 现在接受 tries 选项。

v12.18.3

构造函数现在接受 options 对象。唯一支持的选项是 timeout

v8.3.0

新增于: v8.3.0

创建新的解析器。

\Create a new resolver.

  • options <Object>

    • timeout <integer> 查询超时(以毫秒为单位),或 -1 使用默认超时。

      \timeout <integer> Query timeout in milliseconds, or -1 to use the default timeout.

    • tries <integer> 解析器在放弃之前尝试联系每个名称服务器的尝试次数。默认值:4

      \tries <integer> The number of tries the resolver will try contacting each name server before giving up. Default: 4

    • maxTimeout <integer> 最大重试超时时间,以毫秒为单位。默认值:0,已禁用。

      \maxTimeout <integer> The max retry timeout, in milliseconds. Default: 0, disabled.

AltStyle によって変換されたページ (->オリジナル) /