---
title: "infoblox_alias_record Resource"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/1383301318/infoblox_alias_record%20Resource"
format: markdown
---
The `infoblox_alias_record` resource corresponds to an ALIAS record in NIOS. An ALIAS record is a virtual DNS record type that is created for a standard record type to alias the root domain (apex zone) to another name. For more information about an ALIAS record, refer to *Managing ALIAS Records* in the *[Infoblox NIOS Documentation](https://docs.infoblox.com/)*.

The following table describes the parameters you can define in the resource block of the record:

| **Parameter** | **Required/**  
**Optional** | **Description** | **Example Value** |
| --- | --- | --- | --- |
| `name` | Required | Specifies the record's name. | `alias-record1.test.com` |
| `disable` | Optional | Disables the record if set to `true`. The default value is `false`. | `false` |
| `target_name` | Required | Specifies the target name in FQDN format. | `kk.ll.com` |
| `target_type` | Required | Specifies the type of the target record. The target type can be one of the following: `A`, `AAAA`, `MX`, `NAPTR`, `PTR`, `SPF`, `SRV`, or `TXT` | `PTR` |
| `dns_view` | Optional | Specifies the DNS view in which the record must be created.  
If a value is not specified, `default` will be used as the DNS view name. | `view2` |
| `ttl` | Optional | Specifies the Time to Live value for the record. There is no default value for this parameter.  
If a value is not specified, then in NIOS, the TTL value is inherited from the parent zone of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record. | `600` |
| `comment` | Optional | Describes the record. | `auto-created test record #1` |
| `ext_attrs` | Optional | Specifies the set of NIOS extensible attributes that are attached to the record. | `jsonencode({})` |

## Examples of the ALIAS Record Block

`// creating an alias record with minimum set of parameters`  
`resource "infoblox_alias_record" "alias_record_minimum_params" {`  
`  name = "alias-record1.test.com"`  
`  target_name = "aa.bb.com"`  
`  target_type = "PTR"`  
`}`  


`// creating an alias record with full set of parameters`  
`resource "infoblox_alias_record" "alias_record_full_params" {`  
`  name = "alias-record2.test.com"`  
`  target_name = "kk.ll.com"`  
`  target_type = "AAAA"`  
`  comment = "example alias record"`  
`  dns_view = "view2"`  
`  disable = false`  
`  ttl = 120`  
`  ext_attrs = jsonencode({`  
`    "Site" = "MOROCCO"`  
`  })`  
`}`  


`// creating an alias record with ipv4 reverse mapping zone`  
`resource "infoblox_alias_record" "alias_record_reverse_ipv4" {`  
`  name = "10.0.0.192.in-addr.arpa"`  
`  target_name = "test.info.com"`  
`  target_type = "AAAA"`  
`  comment = "example alias record"`  
`  disable = false`  
`  ttl = 120`  
`  ext_attrs = jsonencode({`  
`    "Site" = "MOROCCO"`  
`  })`  
`} `