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:
SRV
hostname
addresses
callback
priority
weight
port
name
{ priority: 10, weight: 5, port: 21223, name: 'service.example.com'} Copy
{ priority: 10, weight: 5, port: 21223, name: 'service.example.com'}
v0.1.27
Uses the DNS protocol to resolve service records (
SRVrecords) for thehostname. Theaddressesargument passed to thecallbackfunction will be an array of objects with the following properties:priorityweightportname