Function resolveInternetAddress

  • Return public node address for hostName if it has a valid SRV record.

    Parameters

    • hostName: string

      The host name to look up

    • bindingType: BindingType

      The SRV service to look up

    • resolverURL: string = CLOUDFLARE_RESOLVER_URL

      The URL for the DNS-over-HTTPS resolver

    Returns Promise<PublicNodeAddress | null>

    Throws

    If DNSSEC verification failed

    Throws

    If the DNS resolver was unreachable

    null is returned when hostName is an IP address or a non-existing SRV record for the service in bindingType.

    DNS resolution is done with DNS-over-HTTPS.

Generated using TypeDoc