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

# syncRecords

### cddnss.syncRecords

Syncs the given DNS records.

####

#### Parameters:

* `records` *The records that should be updated.* `[Array<`[`Record`](/types/record.md)`>]`
* `ip` *The ip that should be used to update the record.* `[string]` **Optional**

####

> Hint: When a record does not exist, it will be created.
>
> Hint 2: The content of the record is preferred to the parameter.

#### Returns:

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

```typescript
cddnss.syncRecord(records, '1.2.3.4').then((recordData: RecordData) => {
  console.log(recordData);
});
```
