Skip to main content
LookupOptions.order - dns - Node documentation
property LookupOptions.order

Usage in Deno

import { type LookupOptions } from "node:dns";

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.

Type

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