dns.resolveSrv(hostname, callback)
hostname<string>callback<Function>err<Error>addresses对象数组
使用 DNS 协议解析 hostname 的服务记录(SRV 记录)。传递给 callback 函数的 addresses 参数将是一个包含以下属性的对象数组:
【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'
}