Types
Resolver = ref object of JsRoot
- https://nodejs.org/api/dns.html#dns_class_dns_resolver
Lets
ADDRGETNETWORKPARAMS: cstring
BADFAMILY: cstring
BADFLAGS: cstring
BADHINTS: cstring
BADNAME: cstring
BADQUERY: cstring
BADRESP: cstring
BADSTR: cstring
CANCELLED: cstring
CONNREFUSED: cstring
DESTRUCTION: cstring
FILE: cstring
FORMERR: cstring
LOADIPHLPAPI: cstring
NODATA: cstring
NOMEM: cstring
NONAME: cstring
NOTFOUND: cstring
NOTIMP: cstring
NOTINITIALIZED: cstring
REFUSED: cstring
SERVFAIL: cstring
TIMEOUT: cstring
Procs
func cancel(self: Resolver) {.importjs: "#.$1()", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_resolver_cancel
func getServers(self: Resolver): seq[cstring] {.importjs: "#.$1()", ...raises: [], tags: [].}
func importDns() {.importjs: "import * as dns from \'dns\'@", ...raises: [], tags: [].}
- Alias for import * as module_name from 'module_name';. Must be called once before using the module
func lookup[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback
func lookupService[T](address: cstring; port: cint; callback: T) {. importjs: "dns.$1(#, #, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_lookupservice_address_port_callback
func newResolver(timeout = -1.cint): Resolver {. importjs: "(new Resolver({timeout: #}))", ...raises: [], tags: [].}
func requireDns() {.importjs: "const dns = require(\'dns\')@", ...raises: [], tags: [].}
- Alias for const module_name = require('module_name');. Must be called once before using the module
func resolve[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolve_hostname_rrtype_callback
func resolve[T](hostname: cstring; rrtype: cstring; callback: T) {. importjs: "dns.$1(#, #, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolve_hostname_rrtype_callback
func resolve4[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolve4_hostname_options_callback
func resolve6[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolve6_hostname_options_callback
func resolveAny[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolveany_hostname_callback
func resolveAny[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveCaa[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvecaa_hostname_callback
func resolveCaa[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveCname[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvecname_hostname_callback
func resolveCname[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveMx[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvemx_hostname_callback
func resolveNaptr[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvenaptr_hostname_callback
func resolveNaptr[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveNs[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvens_hostname_callback
func resolvePtr[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolveptr_hostname_callback
func resolvePtr[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveSoa[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvesoa_hostname_callback
func resolveSoa[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveSrv[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvesrv_hostname_callback
func resolveSrv[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func resolveTxt[T](hostname: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_resolvetxt_hostname_callback
func resolveTxt[T](self: Resolver; hostname: cstring; callback: T) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
func reverse[T](ip: cstring; callback: T) {.importjs: "dns.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_reverse_ip_callback
func setLocalAddress(self: Resolver; ipv4: cstring) {.importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_resolver_setlocaladdress_ipv4_ipv6
func setLocalAddress(self: Resolver; ipv4: cstring; ipv6: cstring) {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_resolver_setlocaladdress_ipv4_ipv6
func setServers(servers: openArray[cstring]) {.importjs: "dns.$1(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/dns.html#dns_dns_setservers_servers
func setServers[T](self: Resolver; servers: openArray[cstring]) {. importjs: "#.$1(#)", ...raises: [], tags: [].}