Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DnsNodeDiscovery

Index

Constructors

Properties

_DNSTreeCache: {}

Type declaration

  • [key: string]: string
_errorTolerance: number = 10

Methods

  • _getTXTRecord(subdomain: string, context: SearchContext): Promise<string>
  • Retrieves the TXT record stored at a location from either this DNS tree cache or via DNS query.

    throws

    if the TXT Record contains non-UTF-8 values.

    Parameters

    Returns Promise<string>

  • Runs a recursive, randomized descent of the DNS tree to retrieve a single ENR record as an ENR. Returns null if parsing or DNS resolution fails.

    Parameters

    Returns Promise<null | ENR>

Generated using TypeDoc