DnsOverHttps | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DnsOverHttps

Implements

Index

Constructors

Properties

Methods

Constructors

  • Create new Dns-Over-Http DNS client.

    throws

    {code: string} If DNS query fails.

    Parameters

    • endpoints: Endpoints = ...

      The endpoints for Dns-Over-Https queries. See for details. Defaults to cloudflare, google and opendns.

    Returns DnsOverHttps

Properties

endpoints: Endpoints = ...

Methods

  • resolveTXT(domain: string): Promise<string[]>
  • Resolves a TXT record

    throws

    if the result is provided in byte form which cannot be decoded to UTF-8

    Parameters

    • domain: string

      The domain name

    Returns Promise<string[]>

Generated using