Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config option for purge/delete of "stale" records #57

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

omeganot
Copy link
Contributor

@omeganot omeganot commented Jun 2, 2021

This change adds a config setting to control whether "stale" records are purged/deleted or not. Checks were put in place both in commitRecord(ip) to control whether duplicates are deleted (unsure how that case arises, but wanted to provide the option to not delete if someone didn't want to) as well as deleteEntries(type), which was pulling any A or AAAA record not listed in config.json file. People may be manually creating other A or AAAA records for purposes other than DDNS, and removing them automatically when trying to update DDNS records seems like an unintended action. For that reason, the config option is listed as "purgeUnknownRecords" as it will purge anything not listed in the config.json file. However, listing other A or AAAA records in the config.json will have them updated with the local IP to satisfy a DDNS update, so be careful listing anything you wouldn't want to change.

This pull request is intended to fix #47

@ForsakenHarmony
Copy link

Similar to #52

Repository owner deleted a comment from kikkia Sep 16, 2021
Repository owner deleted a comment from ForsakenHarmony Sep 16, 2021
@timothymiller timothymiller merged commit def75e2 into timothymiller:master Oct 30, 2021
@timothymiller
Copy link
Owner

Approved ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

start-sync.sh deleted all my A and AAAA records
3 participants