FresolveSrv
Bun

function

dns.promises.resolveSrv

function resolveSrv(
hostname: string
): Promise<SrvRecord[]>;

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

Referenced types

interface SrvRecord