DNS class abstract

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

hashCode int
The hash code for this object.
no setterinherited
Resolver Function
Constructor for DNS Resolver class.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited