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

getRecordDataForDomains

PreviousgetRecordDataForDomainNextgetRecordDataForRecord

Last updated 5 years ago

Was this helpful?

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

Returns:

  • The DomainRecordList for the records for all given domains [Promise<>]

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