function resolve4
Jump to headingresolve4(hostname: string,callback: (err: ErrnoException | null,addresses: string[],) => void,): void
Deno compatibility
The ttl option is not supported.
Uses the DNS protocol to resolve a IPv4 addresses (A records) for the hostname. The addresses argument passed to the callback function
will contain an array of IPv4 addresses (e.g.['74.125.79.104', '74.125.79.105', '74.125.79.106']).
Parameters Jump to heading
Jump to headinghostname: stringHost name to resolve.
Jump to headingcallback: (err: ErrnoException | null,addresses: string[],) => voidReturn Type Jump to heading
voidJump to headingresolve4(hostname: string,options: ResolveWithTtlOptions,callback: (err: ErrnoException | null,addresses: RecordWithTtl[],) => void,): void
Deno compatibility
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingoptions: ResolveWithTtlOptionsJump to headingcallback: (err: ErrnoException | null,addresses: RecordWithTtl[],) => voidReturn Type Jump to heading
voidJump to headingresolve4(hostname: string,options: ResolveOptions,callback: (err: ErrnoException | null,addresses: string[] | RecordWithTtl[],) => void,): void
Deno compatibility
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingoptions: ResolveOptionsJump to headingcallback: (err: ErrnoException | null,addresses: string[] | RecordWithTtl[],) => voidReturn Type Jump to heading
void