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

getRecordDataForDomain

PreviousgetIpv6NextgetRecordDataForDomains

Last updated 5 years ago

Was this helpful?

cddnss.getRecordDataForDomain

Returns the DNS record data for the given domain.

Parameters:

  • domain The domain for which the DNS record data is needed. [string]

Returns:

  • The data of the DNS records [Promise<Array<>>]

cddnss.getRecordDataForDomain('example.com')
  .then((recordData: Array<RecordData>) => {
    console.log(recordData);
  });
RecordData