Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).
Node dns.promises.resolve4 function | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/node:dns/promises/resolve4Fresolve4 BuildDocsReferenceGuidesBlogDiscord /node:dns/promises/resolve4Fresolve4 dns.promises.resolve4function resolve4(hostname: string): Promisestring[]>; @param hostname function resolve4(hostname: string,options: ResolveWithTtlOptions): PromiseRecordWithTtl[]>; @param hostname function resolve4(hostname: string,options: ResolveOptions): Promisestring[] | RecordWithTtl[]>; @param hostname Referenced typesinterface ResolveWithTtlOptionsttl: trueinterface RecordWithTtladdress: stringttl: numberinterface ResolveOptionsttl: boolean
Search the reference...
/
function
Host name to resolve.
Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).
Host name to resolve.
Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).
Host name to resolve.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Node dns.promises.resolve4 function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:dns/promises.resolve4 | Bun