Skip to main content
getDefaultResultOrder - dns - Node documentation
function getDefaultResultOrder

Usage in Deno

import { getDefaultResultOrder } from "node:dns";
getDefaultResultOrder():
"ipv4first"
| "ipv6first"
| "verbatim"

Get the default value for order in lookup and dnsPromises.lookup(). 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"