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

Node dns.LookupOneOptions TypeScript interface | API Reference | Bun

Node dns.LookupOneOptions TypeScript interface | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:dns/LookupOneOptionsPallPfamilyPhintsPorder

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:dns/LookupOneOptionsPallPfamilyPhintsPorder

interface

dns.LookupOneOptionsinterface LookupOneOptionsall?: falseWhen true, the callback returns all resolved addresses in an array. Otherwise, returns a single address.

family?: number | 'IPv4' | 'IPv6'The record family. Must be 4, 6, or 0. For backward compatibility reasons, 'IPv4' and 'IPv6' are interpreted as 4 and 6 respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value 0 is used with { all: true } (see below), both IPv4 and IPv6 addresses are returned.

hints?: numberOne or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.

order?: 'ipv4first' | 'ipv6first' | 'verbatim'When verbatim, the resolved addresses are return unsorted. When ipv4first, the resolved addresses are sorted by placing IPv4 addresses before IPv6 addresses. When ipv6first, the resolved addresses are sorted by placing IPv6 addresses before IPv4 addresses. Default value is configurable using setDefaultResultOrder or --dns-result-order.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录