Jump to headingresolve(hostname: string,callback: (err: ErrnoException | null,addresses: string[],) => void,): void
The ttl option is not supported.
Uses the DNS protocol to resolve a host name (e.g. 'nodejs.org') into an array
of the resource records. The callback function has arguments (err, records). When successful, records will be an array of resource
records. The type and structure of individual results varies based on rrtype:
On error, err is an Error object,
where err.code is one of the DNS error codes.
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 headingresolve(hostname: string,rrtype: "A",callback: (err: ErrnoException | null,addresses: string[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "A"Jump to headingcallback: (err: ErrnoException | null,addresses: string[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "AAAA",callback: (err: ErrnoException | null,addresses: string[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "AAAA"Jump to headingcallback: (err: ErrnoException | null,addresses: string[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "ANY",callback: (err: ErrnoException | null,addresses: AnyRecord[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "ANY"Jump to headingcallback: (err: ErrnoException | null,addresses: AnyRecord[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "CNAME",callback: (err: ErrnoException | null,addresses: string[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "CNAME"Jump to headingcallback: (err: ErrnoException | null,addresses: string[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "MX",callback: (err: ErrnoException | null,addresses: MxRecord[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "MX"Jump to headingcallback: (err: ErrnoException | null,addresses: MxRecord[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "NAPTR",callback: (err: ErrnoException | null,addresses: NaptrRecord[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "NAPTR"Jump to headingcallback: (err: ErrnoException | null,addresses: NaptrRecord[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "NS",callback: (err: ErrnoException | null,addresses: string[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "NS"Jump to headingcallback: (err: ErrnoException | null,addresses: string[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "PTR",callback: (err: ErrnoException | null,addresses: string[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "PTR"Jump to headingcallback: (err: ErrnoException | null,addresses: string[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "SOA",callback: (err: ErrnoException | null,addresses: SoaRecord,) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "SOA"Jump to headingcallback: (err: ErrnoException | null,addresses: SoaRecord,) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "SRV",callback: (err: ErrnoException | null,addresses: SrvRecord[],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "SRV"Jump to headingcallback: (err: ErrnoException | null,addresses: SrvRecord[],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: "TXT",callback: (err: ErrnoException | null,addresses: string[][],) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "TXT"Jump to headingcallback: (err: ErrnoException | null,addresses: string[][],) => voidReturn Type Jump to heading
voidJump to headingresolve(hostname: string,rrtype: string,callback: (err: ErrnoException | null,addresses: ,) => void,): void
The ttl option is not supported.
Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: stringJump to headingcallback: (err: ErrnoException | null,addresses: ,) => voidReturn Type Jump to heading
void