> For the complete documentation index, see [llms.txt](https://cddnss.knaup.pw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cddnss.knaup.pw/function-list/getrecorddatafordomain.md).

# getRecordDataForDomain

### cddnss.getRecordDataForDomain

Returns the DNS record data for the given domain.

#### Parameters:

* `domain` *The domain for which the DNS record data is needed.* `[string]`&#x20;

####

#### Returns:

* *The data of the DNS records* `[Promise<Array<`[`RecordData`](/types/recorddata.md)`>>]`

```typescript
cddnss.getRecordDataForDomain('example.com')
  .then((recordData: Array<RecordData>) => {
    console.log(recordData);
  });
```
