function setDefaultResultOrder
#setDefaultResultOrder(order: "ipv4first"
| "ipv6first"
| "verbatim"): voidSet the default value of order in lookup and dnsPromises.lookup().
The value could be:
ipv4first: sets defaultordertoipv4first.ipv6first: sets defaultordertoipv6first.verbatim: sets defaultordertoverbatim.
The default is verbatim 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"
| "ipv6first"
| "verbatim" must be 'ipv4first', 'ipv6first' or 'verbatim'.
Return Type #
void