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

getIpv6

cddnss.getIpv6

Returns the external IPv6

Returns:

  • The external IPv6 [Promise<string>]

Example:

cddnss.getIpv6()
  .then((ip) => {
    console.log(`Your IP is ${ip}`); // "Your IP is 2001:0db8:85a3:0000:0000:8a2e:0370:7334"
  });
PreviousgetIpNextgetRecordDataForDomain

Last updated 4 years ago

Was this helpful?