resolveDns(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.
options: ResolveDnsOptions
      
    Promise<string[]>
      
    
resolveDns(): 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.
Promise<CAARecord[]>
      
    
resolveDns(): 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.
Promise<MXRecord[]>
      
    
resolveDns(): 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.
Promise<NAPTRRecord[]>
      
    
resolveDns(): 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.
Promise<SOARecord[]>
      
    
resolveDns(): 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.
Promise<SRVRecord[]>
      
    
resolveDns(): 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.
Promise<string[][]>
      
    
resolveDns(): 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.
Promise<>