import { setDefaultResultOrder } from "https://dotland.deno.dev/std@0.177.0/node/dns.ts";
Set the default value of verbatim
in lookup
and dnsPromises.lookup()
.
The value could be:
ipv4first
: sets defaultverbatim
false
.verbatim
: sets defaultverbatim
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.