Open Nothing4You opened 3 years ago
IIRC this was intentional behaviour, you can't delete apex NS records, see #69 .
it is possible to delete apex NS records, just not the last one. deletion of the last NS record will silently be ignored by bind at least, returning NOERROR.
from bind log:
keyname: updating zone 'mydomain.tld/IN': attempt to delete last NS ignored
i think as long as the provider logic ensures that new NS records are created before old ones are deleted while applying this may be usable, possibly by adding a warning in the documentation about this.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Output
Expected Behavior
Managing the NS records on the root domain should be possible, similar to how all the other record types like
dns_a_record_set
support this.Actual Behavior
The "name" parameter is mandatory.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan