syncOnIpChange
cddnss.syncOnIpChange
Syncs the DNS records every time the external ip changes.
Parameters:
recordsThe records that should be updated.[Array<Record>]callbackThe callback that gets called every time the updating was done.[MultiSyncCallback]
Returns:
The id of the interval that is needed to stop the syncing.
[Promise<string>]
const changeListenerId: string =
cddnss.syncOnIpChange(records , (recordData: Array<RecordData>) => {
console.log(recordData);
});Last updated
Was this helpful?