function resolve
Jump to headingresolve(hostname: string): Promise<string[]>Uses the DNS protocol to resolve a host name (e.g. 'nodejs.org') into an array
of the resource records. When successful, the Promise is resolved with an
array of resource records. The type and structure of individual results vary
based on rrtype:
On error, the Promise is rejected with an Error object, where err.code
is one of the DNS error codes.
Parameters Jump to heading
Jump to headinghostname: stringHost name to resolve.
Return Type Jump to heading
Promise<string[]>Jump to headingresolve(hostname: string,rrtype: "A",): Promise<string[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "A"Return Type Jump to heading
Promise<string[]>Jump to headingresolve(hostname: string,rrtype: "AAAA",): Promise<string[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "AAAA"Return Type Jump to heading
Promise<string[]>Jump to headingresolve(hostname: string,rrtype: "ANY",): Promise<AnyRecord[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "ANY"Return Type Jump to heading
Promise<AnyRecord[]>Jump to headingresolve(hostname: string,rrtype: "CAA",): Promise<CaaRecord[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "CAA"Return Type Jump to heading
Promise<CaaRecord[]>Jump to headingresolve(hostname: string,rrtype: "CNAME",): Promise<string[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "CNAME"Return Type Jump to heading
Promise<string[]>Jump to headingresolve(hostname: string,rrtype: "MX",): Promise<MxRecord[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "MX"Return Type Jump to heading
Promise<MxRecord[]>Jump to headingresolve(hostname: string,rrtype: "NAPTR",): Promise<NaptrRecord[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "NAPTR"Return Type Jump to heading
Promise<NaptrRecord[]>Jump to headingresolve(hostname: string,rrtype: "NS",): Promise<string[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "NS"Return Type Jump to heading
Promise<string[]>Jump to headingresolve(hostname: string,rrtype: "PTR",): Promise<string[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "PTR"Return Type Jump to heading
Promise<string[]>Jump to headingresolve(hostname: string,rrtype: "SOA",): Promise<SoaRecord>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "SOA"Return Type Jump to heading
Promise<SoaRecord>Jump to headingresolve(hostname: string,rrtype: "SRV",): Promise<SrvRecord[]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "SRV"Return Type Jump to heading
Promise<SrvRecord[]>Jump to headingresolve(hostname: string,rrtype: "TXT",): Promise<string[][]>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: "TXT"Return Type Jump to heading
Promise<string[][]>Jump to headingresolve(hostname: string,rrtype: string,): Promise<>Parameters Jump to heading
Jump to headinghostname: stringJump to headingrrtype: stringReturn Type Jump to heading
Promise<>