Open

Description
This issue was originally opened by @SteveBristow as hashicorp/terraform#24820. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform v0.12.24
+ provider.dns v2.2.0
Terraform Configuration Files
provider "dns" {
update {
server = "192.168.1.1"
}
}
resource "dns_a_record_set" "test" {
zone = ".lab.environment.local."
name = "testrecord"
addresses = ["127.0.0.1"]
ttl = 300
}
...
Crash Output
Expected Behavior
An illegal zone name (preceding dot) should have been reported, and ignored or failed on - ideally at plan stage.
Actual Behavior
DNS provider crashed Terraform.
Steps to Reproduce
- Create a TF template using the code excerpt above. A functioning DNS server is not necessary.
terraform init
to add the DNS provider to Terraformterraform apply
- Observe the successful plan - respond "yes" to apply.
- Observe crash state.
Additional Context
Terraform is running on Ubuntu on WSL. It seems unlikely that this is the problem, as removing the preceeding dot from the Zone name results in success.