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

# getRecordDataForDomains

### cddnss.getRecordDataForDomains

Returns the DNS record data for the given domains.

####

#### Parameters:

* `domains` *The domains for which the DNS record data is needed.* `[Array<string>]`&#x20;

####

#### Returns:

* *The DomainRecordList for the records for all given domains* `[Promise<`[`DomainRecordList`](/types/domainrecordlist.md)`>]`

```typescript
cddnss.getRecordDataForDomains(['example.com', 'example.net'])
  .then((domainRecordList: DomainRecordList) => {
    for (const domain in domainRecordList) {
      const recordData: Array<RecordData> = domainRecordList[domain];
      console.log(recordData);
    }
  });
```
