On this page

    dns.resolve6(hostname, options?, callback): void
    Attributes
    hostname:string
    Host name to resolve.
    options:Object
    Retrieve the Time-To-Live value (TTL) of each record. When true, the callback receives an array of { address: '0:1:2:3:4:5:6:7', ttl: 60 } objects rather than an array of strings, with the TTL expressed in seconds.
    callback:Function
    err:Error
    addresses:string[] | Object[]

    Uses the DNS protocol to resolve IPv6 addresses (AAAA records) for the hostname. The addresses argument passed to the callback function will contain an array of IPv6 addresses.