Terraform init error in terraform 11

I am running terraform on GCP . To upgrade terraform from v0.11 to v0.12 i need to run terraform init ( with terraform 11 binaries .) I get the below errror when i do so .
Error installing provider "
Running on Windows machine .
random": Get https://releases.hashicorp.com/terraform-provider-random/: dial tcp: lookup releases.hashicorp.com: no such host.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occured.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin’s executable file in the
following directory:
terraform.d/plugins/windows_amd64

Error installing provider “vault”: Get https://releases.hashicorp.com/terraform-provider-vault/: dial tcp: lookup releases.hashicorp.com: no such host.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occured.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin’s executable file in the
following directory:
terraform.d/plugins/windows_amd64

Error installing provider “google”: Get https://releases.hashicorp.com/terraform-provider-google/: dial tcp: lookup releases.hashicorp.com: no such host.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occured.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin’s executable file in the
following directory:
terraform.d/plugins/windows_amd64

Error installing provider “google-beta”: Get https://releases.hashicorp.com/terraform-provider-google-beta/: dial tcp: lookup releases.hashicorp.com: no such host.
Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occured.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin’s executable file in the
following directory:
terraform.d/plugins/windows_amd64

Error installing provider “null”: Get https://releases.hashicorp.com/terraform-provider-null/: dial tcp: lookup releases.hashicorp.com: no such host.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occured.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin’s executable file in the
following directory:
terraform.d/plugins/windows_amd64

Hi @narendra.sharma2,

Unfortunately something on you network seems to be preventing your computer from resolving the hostname releases.hashicorp.com. That hostname is resolving for me, so I think you will need to discuss this with someone responsible for the network where you are working to try to discover why that hostname is not resolvable from your location.

If you are able to reach the releases server in other software then you may be able to install the providers manually as the error message suggests. If you extract each provider plugin’s executable from the relevant zip file into the directory mentioned in the error message then Terraform should be able to find it there. For correct results that directory should contain only a flat selection of executable files, with no subdirectories.

(The details above are specific to these older versions of Terraform. Modern Terraform – v0.13 or later in this case – has a different method for configuring that some providers should be installed from a local directory instead of over the network, but that won’t be relevant for your upgrade to v0.12.)