Skip to main content
getDefaultResultOrder - node__dns.d.ts - Node documentation
function getDefaultResultOrder

Usage in Deno

```typescript import { getDefaultResultOrder } from "node:node__dns.d.ts"; ```
getDefaultResultOrder():
"ipv4first"
| "ipv6first"
| "verbatim"
Get the default value for `order` in [lookup](../.././node__dns.d.ts/~/lookup) and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options). The value could be: * `ipv4first`: for `order` defaulting to `ipv4first`. * `ipv6first`: for `order` defaulting to `ipv6first`. * `verbatim`: for `order` defaulting to `verbatim`.

Return Type

"ipv4first"
| "ipv6first"
| "verbatim"