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

Force recreating DNS record when type changes #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhynix
Copy link

@rhynix rhynix commented Jul 8, 2022

When updating the type of a DNS record resource, the old record is not removed because only records that match the new type of the resource are removed. A new record with the new type is created though.

The resource keeps tracking the old record, because the type is part of the ID, and the ID does not change. While it is technically possible to update the ID, it rarely happens. When the type of a DNS record changes, it can also be considered a new record because the meaning of the record changes significantly.

When updating the type of a DNS record resource, the old record is not
removed because only records that match the new type of the resource are
removed. A new record with the new type is created though.

The resource keeps tracking the old record, because the type is part of
the ID, and the ID does not change. While it is technically possible to
update the ID, it rarely happens. When the type of a DNS record changes,
it can also be considered a new record because the meaning of the record
changes significantly.
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.

1 participant