Fix Terraform DNS Lookup Issues While on VPN with Mac OSX

July 16, 2021

Terraform on my MacBook kept having DNS resolution issues with the AWS plugin while on VPN.

Because Terraform uses GoLang it resolves DNS differently than the rest of the system.

This is explained here:

https://github.com/hashicorp/terraform/issues/3536

To resolve the issue install “DNS-heaven”

https://github.com/greenboxal/dns-heaven