implicit final class DNSExtensions extends AnyVal
DNS Extensions
- Alphabetic
- By Inheritance
- DNSExtensions
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lookupFuture(hostname: String, options: |[DnsOptions, Int] = null): Future[(String, Int)]
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()
- def lookupServiceFuture(address: String, port: Int): Future[(String, String)]
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()
- def resolveFuture(hostname: String, rrtype: RRType = null): Future[ResolveResult]
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()
- def reverseFuture(ipAddress: String): Future[Array[String]]
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()
- def toString(): String
- Definition Classes
- Any