Class

io.scalajs.nodejs.dns

DNSExtensions

Related Doc: package dns

Permalink

implicit final class DNSExtensions extends AnyVal

DNS Extensions

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DNSExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DNSExtensions(dns: DNS)

    Permalink

    dns

    the DNS instance

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val dns: DNS

    Permalink

    the DNS instance

  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def lookupAsync(hostname: String, options: |[|[DnsOptions, RawOptions], Int] = null): Promise[String]

    Permalink

    Resolves a hostname (e.g.

    Resolves a hostname (e.g. 'nodejs.org') into the first found A (IPv4) or AAAA (IPv6) record. options can be an object or integer. If options is not provided, then IPv4 and IPv6 addresses are both valid. If options is an integer, then it must be 4 or 6.

    Annotations
    @inline()
  9. def lookupServiceAsync(address: String, port: Int): Promise[(String, String)]

    Permalink

    Resolves the given address and port into a hostname and service using the operating system's underlying getnameinfo implementation.

    Resolves the given address and port into a hostname and service using the operating system's underlying getnameinfo implementation.

    If address is not a valid IP address, a TypeError will be thrown. The port will be coerced to a number. If it is not a legal port, a TypeError will be thrown.

    The callback has arguments (err, hostname, service). The hostname and service arguments are strings (e.g. 'localhost' and 'http' respectively).

    On error, err is an Error object, where err.code is the error code.

    Annotations
    @inline()
  10. def resolveAsync[T](hostname: String, rrtype: RRType = null): Promise[T]

    Permalink

    Uses the DNS protocol to resolve a hostname (e.g.

    Uses the DNS protocol to resolve a hostname (e.g. 'nodejs.org') into an array of the record types specified by rrtype. On error, err is an Error object, where err.code is one of the error codes listed here.

    hostname

    the hostname

    Annotations
    @inline()
  11. def reverseAsync(ipAddress: String): Promise[Array[String]]

    Permalink

    Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of hostnames.

    Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of hostnames. The callback function has arguments (err, hostnames), where hostnames is an array of resolved hostnames for the given ip. On error, err is an Error object, where err.code is one of the DNS error codes.

    ipAddress

    the IP Address

    Annotations
    @inline()
  12. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped