fixes #15244 - provide a CNAME api to the DNSCMD provider #436
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is similar to a part of a solution that is used in my organization. There is a rake task that scans all hosts for a cnames host parameter and pushes out these aliases into the Microsoft DHCP servers scattered across the world.
This implementation is not optimal as the collision checks for A, AAAA and CNAME entries should all check for the other types as an A and CNAME entry can collide. I would argue that cname management is an ancillary function so does not need so much attention. In addition the names given to aliases tend to be specialized so will generally not be given to an ordinary machine. The rake task also does additional collision detection to ensure that A and CNAME entries are not already present.