Cloudflare DDNS Sync
StartSyncChangelog
  • Overview
  • Configuration
  • Functions
  • Cron Expression Syntax
  • Changelog
  • Functions
    • Constructor
    • getIp
    • getIpv6
    • getRecordDataForDomain
    • getRecordDataForDomains
    • getRecordDataForRecord
    • getRecordDataForRecords
    • removeRecord
    • syncByCrontime
    • syncOnIpChange
    • stopSyncOnIpChange
    • syncRecord
    • syncRecords
  • Types
    • DomainRecordList
    • Record
    • RecordData
    • RecordTypes
    • SingleSyncCallback
    • MultiSyncCallback
    • ZoneData
    • ZoneMap
Powered by GitBook
On this page

Was this helpful?

  1. Functions

syncRecords

PrevioussyncRecordNextDomainRecordList

Last updated 5 years ago

Was this helpful?

cddnss.syncRecords

Syncs the given DNS records.

Parameters:

  • records The records that should be updated. [Array<>]

  • 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<>>]

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