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

Function initializeDns

lib/internal/dns/utils.js:219–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217const validFamilies = [0, 4, 6];
218
219function initializeDns() {
220 const orderFromCLI = getOptionValue('--dns-result-order');
221 if (!orderFromCLI) {
222 dnsOrder ??= 'verbatim';
223 } else {
224 // Allow the deserialized application to override order from CLI.
225 validateOneOf(orderFromCLI, '--dns-result-order', validDnsOrders);
226 dnsOrder = orderFromCLI;
227 }
228
229 if (!isBuildingSnapshot()) {
230 return;
231 }
232
233 addSerializeCallback(() => {
234 defaultResolver?.[kSerializeResolver]();
235 });
236}
237
238const resolverKeys = [
239 'getServers',

Callers

nothing calls this directly

Calls 3

getOptionValueFunction · 0.85
isBuildingSnapshotFunction · 0.85
addSerializeCallbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…