Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DnsClient

Provides a way to asynchronously lookup information from DNS servers.

Please consult the documentation for more information on DNS clients.

Hierarchy

  • DnsClient

Index

Methods

lookup

  • Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.

    Parameters

    Returns DnsClient

lookup4

  • Try to lookup the A (ipv4) record for the given name. The first found will be used.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to lookup the A (ipv4) record for the given name. The first found will be used.

    Parameters

    Returns DnsClient

lookup6

  • Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.

    Parameters

    Returns DnsClient

resolveA

  • Try to resolve all A (ipv4) records for the given name.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to resolve all A (ipv4) records for the given name.

    Parameters

    Returns DnsClient

resolveAAAA

  • Try to resolve all AAAA (ipv6) records for the given name.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to resolve all AAAA (ipv6) records for the given name.

    Parameters

    Returns DnsClient

resolveCNAME

  • Try to resolve the CNAME record for the given name.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to resolve the CNAME record for the given name.

    Parameters

    Returns DnsClient

resolveMX

  • Try to resolve the MX records for the given name.

    Parameters

    • name: string

    Returns PromiseLike<MxRecord>

  • Try to resolve the MX records for the given name.

    Parameters

    Returns DnsClient

resolveNS

  • Try to resolve the NS records for the given name.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to resolve the NS records for the given name.

    Parameters

    Returns DnsClient

resolvePTR

  • Try to resolve the PTR record for the given name.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to resolve the PTR record for the given name.

    Parameters

    Returns DnsClient

resolveSRV

  • Try to resolve the SRV records for the given name.

    Parameters

    • name: string

    Returns PromiseLike<SrvRecord>

  • Try to resolve the SRV records for the given name.

    Parameters

    Returns DnsClient

resolveTXT

  • Try to resolve the TXT records for the given name.

    Parameters

    • name: string

    Returns PromiseLike<string>

  • Try to resolve the TXT records for the given name.

    Parameters

    Returns DnsClient

reverseLookup

  • Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string.

    Parameters

    • ipaddress: string

    Returns PromiseLike<string>

  • Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string.

    Parameters

    Returns DnsClient

Generated using TypeDoc