sfml.js
Preparing search index...
Dns
queryNs
Function queryNs
queryNs
(
hostname
:
string
,
servers
?:
readonly
IpAddress
[]
,
timeout
?:
undefined
|
ReadonlyValue
<
Time
>
,
)
:
Promise
<
string
[]
>
查询域名服务器记录;默认使用系统 DNS、超时 1 秒,查询失败返回空数组。
Parameters
hostname
:
string
servers
:
readonly
IpAddress
[]
= []
timeout
:
undefined
|
ReadonlyValue
<
Time
>
= ...
Returns
Promise
<
string
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
sfml.js
Loading...
查询域名服务器记录;默认使用系统 DNS、超时 1 秒,查询失败返回空数组。