Performs DNS resolution against the given query, returning resolved records. Fails in the cases such as:
nameServer.port
is beyond the range of 16-bit unsigned integerconst 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.
Performs DNS resolution against the given query, returning resolved records. Fails in the cases such as:
nameServer.port
is beyond the range of 16-bit unsigned integerconst 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.
© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.resolveDns