# Terraform init: could not connect to registry.terraform.io

**URL:** <https://discuss.hashicorp.com/t/terraform-init-could-not-connect-to-registry-terraform-io/34681>\
**Category:** Terraform\
**Created:** [January 24, 2022, 5:44pm UTC](https://discuss.hashicorp.com/t/terraform-init-could-not-connect-to-registry-terraform-io/34681 "2022-01-24T17:44:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![shohei](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shohei/32/25389_2.png) [@shohei](https://discuss.hashicorp.com/u/shohei)\
**Post date:** [January 26, 2022, 1:19am UTC](https://discuss.hashicorp.com/t/terraform-init-could-not-connect-to-registry-terraform-io/34681/2 "2022-01-26T01:19:46Z")

</div>

It sounds like you had some trouble with DNS. Not sure if that was due to your local ISP thing but you could switch to some other public DNS services (e.g., “1.1.1.1”, “8.8.8.8”, etc) to see if that mitigates the issue. And if so, that’s likely your ISP/region-specific issue that we can’t help much, unfortunately.

Otherwise, my best bet is to reach out to Fastly support ([support@fastly.com](mailto:support@fastly.com)) with the debug output collected on [https://www.fastly-debug.com/](https://www.fastly-debug.com/) and see if they can give you any insights.

---

_[View the full topic](https://discuss.hashicorp.com/t/terraform-init-could-not-connect-to-registry-terraform-io/34681)._
