Module

std/node/dns.ts

Deno standard library
Go to Latest
function setDefaultResultOrder
import { setDefaultResultOrder } from "https://deno.land/std@0.145.0/node/dns.ts";

Set the default value of verbatim in lookup and dnsPromises.lookup(). The value could be:

  • ipv4first: sets default verbatim false.
  • verbatim: sets default verbatim true.

The default is ipv4first and setDefaultResultOrder have higher priority than --dns-result-order. When using worker threads, setDefaultResultOrder from the main thread won't affect the default dns orders in workers.

Parameters

order: "ipv4first" | "verbatim"

must be 'ipv4first' or 'verbatim'.

import setDefaultResultOrder
import { setDefaultResultOrder } from "https://deno.land/std@0.145.0/node/dns.ts";