resolveTxt
external fun resolveTxt(hostname: String, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>>) -> Unit)(source)
Uses the DNS protocol to resolve text queries (TXT
records) for the hostname
. The records
argument passed to the callback
function is a two-dimensional array of the text records available for hostname
(e.g.[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]
). Each sub-array contains TXT chunks of one record. Depending on the use case, these could be either joined together or treated separately.
Since
v0.1.27
suspend external fun resolveTxt(hostname: String): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>>(source)