File Explorer

/var/runtime/node_modules/@aws-sdk/util-dns/dist-cjs/archive

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

0 dirs
1 file
NodeDnsResolveHostResolver.js1.3 KB · 37 lines
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.NodeDnsResolveHostResolver = void 0;const types_1 = require("@aws-sdk/types");const dns_1 = require("dns");class NodeDnsResolveHostResolver {    async resolveAddress(args) {        const addresses = [];        const ipV4Addresses = await dns_1.promises.resolve4(args.hostName);        for (const address of ipV4Addresses) {            addresses.push({                addressType: types_1.HostAddressType.A,                address,                hostName: args.hostName,                service: args.service,            });        }        const ipV6Addresses = await dns_1.promises.resolve6(args.hostName);        for (const address of ipV6Addresses) {            addresses.push({                addressType: types_1.HostAddressType.AAAA,                address,                hostName: args.hostName,                service: args.service,            });        }        return addresses;    }    reportFailureOnAddress(addr) {        throw new Error("reportFailureOnAddress(addr) is not implemented");    }    purgeCache(args) {        throw new Error("purgeCache(args?) is not implemented");    }}exports.NodeDnsResolveHostResolver = NodeDnsResolveHostResolver;