Introduction
Problem
During a terraform plan, the following error is being thrown in Terraform:
Error: Failed to request discovery document:
Get "https://app.terraform.io/.well-known/terraform.json": dial tcp:
lookup app.terraform.io on 127.0.0.53:53: server misbehaving
NOTE: The hostname of Terraform might be different for your environment
Prerequisites
- Ubuntu 18.04
Cause
The error is caused by this Bug in Ubuntu 18.04:
Solutions:
-
Reboot your instances
OR -
Issue the following command as root:
udevadm trigger -cadd -yeth0 && systemctl restart systemd-networkd
Outcome
Once the TFE Virtual Machine is rebooted the service is going to be restored.