Skip to main content


Deno standard library
Go to Latest
function resolveSrv
import { resolveSrv } from "";

Uses the DNS protocol to resolve service records (SRV records) for the hostname. The addresses argument passed to the callback function will be an array of objects with the following properties:

  • priority
  • weight
  • port
  • name
  priority: 10,
  weight: 5,
  port: 21223,
  name: ''


hostname: string
callback: (err: ErrnoException | null, addresses: SrvRecord[]) => void