温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/dns/promises/Resolver/setLocalAddress
点击访问原文链接

Resolver.setLocalAddress method | Node.js dns/promises module | Bun

Resolver.setLocalAddress method | Node.js dns/promises module | BunBuildDocsReferenceGuidesBlogDiscord/node:dns/promises/Resolver/setLocalAddressMsetLocalAddress

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:dns/promises/Resolver/setLocalAddressMsetLocalAddress

method

dns.promises.Resolver.setLocalAddresssetLocalAddress(ipv4?: string,ipv6?: string): void;

The resolver instance will send its requests from the specified IP address. This allows programs to specify outbound interfaces when used on multi-homed systems.

If a v4 or v6 address is not specified, it is set to the default and the operating system will choose a local address automatically.

The resolver will use the v4 local address when making requests to IPv4 DNS servers, and the v6 local address when making requests to IPv6 DNS servers. The rrtype of resolution requests has no impact on the local address used.

@param ipv4

A string representation of an IPv4 address.

@param ipv6

A string representation of an IPv6 address.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Resolver.setLocalAddress method | Node.js dns/promises module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method node:dns/promises.Resolver.setLocalAddress | Bun