Skip to main content
LookupOptions.order - node__dns.d.ts - Node documentation
property LookupOptions.order

Usage in Deno

```typescript import { type LookupOptions } from "node:node__dns.d.ts"; ```
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](../.././node__dns.d.ts/~/setDefaultResultOrder) or [`--dns-result-order`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--dns-result-orderorder).

Type

"ipv4first"
| "ipv6first"
| "verbatim"
| undefined