DNS class

Main entry point to Node's "dns" module functionality.

Instead of using this class directly consider dns object.

Usage:

import 'package:node_interop/dns.dart';

void main() {
  var options = new DNSLookupOptions(all: true, verbatim: true);
  void lookupHandler(error, List<DNSAddress> addresses) {
    console.log(addresses);
  }
  dns.lookup('google.com', options, allowInterop(lookupHandler));
}
Implemented types
Annotations
  • @JS()
  • @anonymous

Constructors

DNS()

Properties

Resolver → Function
Constructor for DNS Resolver class. [...]
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

lookup(String hostname, DNSLookupOptions options, Function callback) → void
Resolves a hostname (e.g. 'nodejs.org') into the first found IPv4 or IPv6 record. [...]
cancel() → void
inherited
getServers() → List<String>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
resolve(String hostname, String rrtype, dynamic callback(dynamic error dynamic records)) → void
inherited
resolve4(String hostname, dynamic optionsOrCallback, [ dynamic callback(dynamic error dynamic addresses) ]) → void
inherited
resolve6(String hostname, dynamic optionsOrCallback, [ dynamic callback(dynamic error dynamic addresses) ]) → void
inherited
resolveAny(String hostname, dynamic callback(dynamic error, List ret)) → void
inherited
resolveCname(String hostname, dynamic callback(dynamic error, List<String> ret)) → void
inherited
resolveMx(String hostname, dynamic callback(dynamic error, List addresses)) → void
inherited
resolveNaptr(String hostname, dynamic callback(dynamic error, List addresses)) → void
inherited
resolveNs(String hostname, dynamic callback(dynamic error, List<String> addresses)) → void
inherited
resolvePtr(String hostname, dynamic callback(dynamic error, List<String> addresses)) → void
inherited
resolveSoa(String hostname, dynamic callback(dynamic error dynamic address)) → void
inherited
resolveSrv(String hostname, dynamic callback(dynamic error, List addresses)) → void
inherited
resolveTxt(String hostname, dynamic callback(dynamic error, List<List<String>> records)) → void
inherited
reverse(String ip, dynamic callback(dynamic error, List<String> hostnames)) → void
inherited
setServers(List<String> servers) → void
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited