function resolveSrv
Jump to headingresolveSrv(hostname: string,callback: (err: ErrnoException | null,addresses: SrvRecord[],) => void,): void
Deno compatibility
The ttl option is not supported.
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:
priorityweightportname
{
priority: 10,
weight: 5,
port: 21223,
name: 'service.example.com'
}
Parameters Jump to heading
Jump to headinghostname: stringJump to headingcallback: (err: ErrnoException | null,addresses: SrvRecord[],) => voidReturn Type Jump to heading
void