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

Function query

lib/internal/dns/promises.js:339–344  ·  view source on GitHub ↗
(name, options)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

createResolverPromiseFunction · 0.85

Tested by

no test coverage detected