• hostname {string}

    Uses the DNS protocol to resolve service records (SRV records) for the hostname. On success, the Promise is resolved with an array of objects with the following properties:

    • priority
    • weight
    • port
    • name
    1. {
    2. priority: 10,
    3. weight: 5,
    4. port: 21223,
    5. name: 'service.example.com'
    6. }