Resolver([options])
版本历史
| 版本 | 变更 |
|---|---|
| v16.7.0, v14.18.0 | 对象 |
| v12.18.3 | 构造函数现在接受 |
| v8.3.0 | 新增于: v8.3.0 |
创建新的解析器。
\Create a new resolver.
-
options<Object>-
timeout<integer> 查询超时(以毫秒为单位),或-1使用默认超时。\
timeout<integer> Query timeout in milliseconds, or-1to 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.
-