interface LookupOptions {
    hints?: number;
    family?: IPFamily;
    all?: boolean;
}

Properties

Properties

hints?: number

One or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.

family?: IPFamily

The record family. Must be 4 or 6. IPv4 and IPv6 addresses are both returned by default.

all?: boolean

When true, the callback returns all resolved addresses in an array. Otherwise, returns a single address.

false