---
title: "Terraform Configuration File for A record"
canonical: "https://docs.infoblox.com/space/DeploymentGuideTerraformNIOSProvider/807043897/Terraform%20Configuration%20File%20for%20A%20record"
format: markdown
---
1. Create a folder named  **A_records** and save **dns_records.tf **file in the folder.
2. Double click the **a_record.tf** file to open in VScode.
3. We will examine each block in the file.


*Note: The terraform and provider blocks are the same in each configuration file and are not covered again here. If you would like to review details regarding the terraform and provider blocks, please see previous section.*

a. The first **resource** block uses the **dns_records **type to add an A record to an existing DNS zone.

b. The **fqdn** argument specifies the full name of the record to be created. Note: This FQDN must use an existing zone in your Grid.

c. The **ip_addr** argument is used to manually assign an IP address for the record.

d. The **ttl **argument specifies a TTL for the record. *Note: If this is set to 0, the record will not be cached. If this argument is omitted, the record will inherit a TTL from the parent zone.*

![image](media://b0da9f67-faba-4247-978b-8fadf2c575ed)

e. The second resource block uses the **dns_records** type again to create another A record.

f. In this block, the **cidr **argument is used instead of ip_addr(here you are using reference of a network resource instead of it’s proper IP address) , to dynamically assign the next available IP address from an existing network.

![image](media://974a888f-81c4-4d3c-8bf4-18b8529ec513)