Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HostResolver

public

Host Resolver interface for DNS queries

Hierarchy

  • HostResolver

Index

Methods

purgeCache

reportFailureOnAddress

  • Reports a failure on a HostAddress so that the cache (if implemented) can accomodate the failure and likely not return the address until it recovers.

    Parameters

    • addr: HostAddress

      host address to report a failure on

    Returns void

resolveAddress

  • Resolves the address(es) for HostResolverArguments and returns a list of addresses with (most likely) two addresses, one HostAddressType.AAAA and one HostAddressType.A. Calls to this function will likely alter the cache (if implemented) so that if there's multiple addresses, a different set will be returned on the next call. In the case of multi-answer, still only a maximum of two records should be returned. The resolver implementation is responsible for caching and rotation of the multiple addresses that get returned. Implementations don't have to explictly call getaddrinfo(), they can use high level abstractions provided in their language runtimes/libraries.

    Parameters

    Returns Promise<HostAddress[]>

    promise with a list of HostAddress