> 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/getrecorddataforrecord.md).

# getRecordDataForRecord

### cddnss.getRecordDataForRecord

Returns the DNS record data of the given record.

####

#### Parameters:

* `record` *The record for which the DNS record data is needed.* `[`[`Record`](/types/record.md)`]`&#x20;

####

#### Returns:

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

```typescript
cddnss.getRecordDataForRecord(record)
  .then((recordData: RecordData) => {
    console.log(recordData);
  });
```
