Open PascalReintjens opened 2 years ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @nbuchwitz click here for bot help
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Summary
When you are setting a CNAME record for a sub(-domain) it should remove all other types of records for this sub(-domain). If you set an A/AAAA record etc. for a sub(-domain) it should remove the CNAME record.
This module seems to ignore those conflicts and the netcup api accepts that nonetheless, resulting if the sub(-domain) had one type of record(s) and gets "switched" to the other type in a broken domain configuration state.
Issue Type
Bug Report
Component Name
community.general.netcup_dns
Ansible Version
Community.general Version
Configuration
OS / Environment
Ubuntu 20.04.4 LTS (WSL 2)
Steps to Reproduce
Give a domain, for example subdomain.domainname.de a CNAME record. Then try to set an A record for subdomain.domainname.de via this module. Then both show up in the netcup domain interface,
or
Give a domain, for example subdomain.domainname.de an A record. Then try to set an CNAME record for subdomain.domainname.de via this module. Then both show up in the netcup domain interface,
Expected Results
I expected the offending CNAME / A/AAAA (depending what is currently being set) to be removed
Actual Results
The offending CNAME / A/AAAA is still there, resulting in a broken domain-state
Code of Conduct