Skip to content

ResolveTxt

[<Interface>]
type ResolveTxt =
    abstract member Invoke (hostname: string, callback: Callback) : unit
    abstract member __promisify__ (hostname: string) : Promise<string array array>
AssemblyXantham.Fable.Node

Declared inside

Callback

Methods

abstract member Invoke (hostname: string, callback: Callback) : unit

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

abstract member __promisify__ (hostname: string) : Promise<string array array>