Skip to main content
LookupOptions.family - dns - Node documentation
property LookupOptions.family

Usage in Deno

import { type LookupOptions } from "node:dns";

The record family. Must be 4, 6, or 0. For backward compatibility reasons, 'IPv4' and 'IPv6' are interpreted as 4 and 6 respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value 0 is used with { all: true } (see below), both IPv4 and IPv6 addresses are returned.

Type

number
| "IPv4"
| "IPv6"
| undefined
Back to top