Jump to headingresolveDns(query: string,recordType: "A"
| "AAAA"
| "ANAME"
| "CNAME"
| "NS"
| "PTR",options?: ResolveDnsOptions,): Promise<string[]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "A"
| "AAAA"
| "ANAME"
| "CNAME"
| "NS"
| "PTR"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<string[]>Jump to headingresolveDns(): Promise<CaaRecord[]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "CAA"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<CaaRecord[]>Jump to headingresolveDns(): Promise<MxRecord[]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "MX"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<MxRecord[]>Jump to headingresolveDns(): Promise<NaptrRecord[]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "NAPTR"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<NaptrRecord[]>Jump to headingresolveDns(): Promise<SoaRecord[]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "SOA"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<SoaRecord[]>Jump to headingresolveDns(): Promise<SrvRecord[]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "SRV"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<SrvRecord[]>Jump to headingresolveDns(): Promise<string[][]>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: "TXT"Jump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<string[][]>Jump to headingresolveDns(): Promise<>Performs DNS resolution against the given query, returning resolved records.
Fails in the cases such as:
- the query is in invalid format.
- the options have an invalid parameter. For example
nameServer.portis beyond the range of 16-bit unsigned integer. - the request timed out.
const a = await Deno.resolveDns("example.com", "A");
const aaaa = await Deno.resolveDns("example.com", "AAAA", {
nameServer: { ipAddr: "8.8.8.8", port: 53 },
});
Requires allow-net permission.
Parameters Jump to heading
Jump to headingquery: stringJump to headingrecordType: RecordTypeJump to headingoptions: ResolveDnsOptionsReturn Type Jump to heading
Promise<>