Terraform init not working

Hi Team,

I have installed terraform on Windows machine and trying to automate bigipf5 while doing terraform init getting below error .can you help on this.
PS C:\Users\F5_deploy> terraform init

Initializing the backend…

Initializing provider plugins…

  • Finding latest version of hashicorp/bigip…

    │ Error: Failed to query available provider packages

    │ Could not retrieve the list of available versions for provider hashicorp/bigip: could not connect to registry.terraform.io: failed to request discovery
    │ document: Get “https://registry.terraform.io/.well-known/terraform.json”: dial tcp: lookup registry.terraform.io: getaddrinfow: This is usually a temporary
    │ error during hostname resolution and means that the local server did not receive a response from an authoritative server.

but curl is working fine.please help

PS C:\Users\F5_deploy> curl -v https://registry.terraform.io/.well-known/terraform.json
VERBOSE: GET https://registry.terraform.io/.well-known/terraform.json with 0-byte payload
VERBOSE: received 62-byte response of content type application/json

StatusCode : 200
StatusDescription : OK
Content : {“modules.v1”:“/v1/modules/”,“providers.v1”:“/v1/providers/”}