function resolve
Usage in Deno
```typescript import { resolve } from "node:node__dns--promises.d.ts"; ```
resolve(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`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
Promise<string[]>
resolve(hostname: string,rrtype: "NAPTR",): Promise<NaptrRecord[]>
Promise<NaptrRecord[]>