MCPcopy Index your code
hub / github.com/nodejs/node / resolver

Function resolver

lib/internal/dns/promises.js:338–348  ·  view source on GitHub ↗
(bindingName)

Source from the content-addressed store, hash-verified

336}
337
338function resolver(bindingName) {
339 function query(name, options) {
340 validateString(name, 'name');
341
342 const ttl = !!(options?.ttl);
343 return createResolverPromise(this, bindingName, name, ttl);
344 }
345
346 ObjectDefineProperty(query, 'name', { __proto__: null, value: bindingName });
347 return query;
348}
349
350function resolve(hostname, rrtype) {
351 let resolver;

Callers 1

createResolverClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected