resolveSrvAsync

external fun resolveSrvAsync(hostname: String): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/SrvRecord>>(source)

Uses the DNS protocol to resolve service records (SRV records) for the hostname. On success, the Promise is resolved with an array of objects with the following properties:

  • priority

  • weight

  • port

  • name

{
priority: 10,
weight: 5,
port: 21223,
name: 'service.example.com'
}

Since

v10.6.0