NresolveTlsa
Bun

namespace

dns.resolveTlsa

function resolveTlsa(
hostname: string,
callback: (err: null | ErrnoException, addresses: TlsaRecord[]) => void
): void;

Uses the DNS protocol to resolve certificate associations (TLSA records) for the hostname. The records argument passed to the callback function is an array of objects with these properties:

  • certUsage
  • selector
  • match
  • data
{
  certUsage: 3,
  selector: 1,
  match: 1,
  data: [ArrayBuffer]
}

namespace resolveTlsa