---
title: "infoblox_ns_record Resource"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/1383301417/infoblox_ns_record%20Resource"
format: markdown
---
The `infoblox_ns_record` resource corresponds to an NS (name server) record in NIOS. An NS record identifies an authoritative DNS server for a domain. For more information about an NS record, refer to *Managing NS 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 in FQDN format. This value can be in unicode format. | `test.com` |
| `nameserver` | Required | Specifies the domain name of an authoritative serve. | `name.test.com` |
| `addresses` | Required | Specifies the list of name servers in the zone in which the record resides. You can specify the following sub parameters for every name server you define:<br>- `address` (required): Specifies the address of the name server.
- `auto_create_ptr`: Indicates whether the PTR record must be auto created.  
The default value is `true`. | `{`  
` address = "10.3.1.2"`  
` auto_create_ptr=true`  
`  }` |
| `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` |

> ⚠️ **Note**
> ⚠️ 
> ⚠️ NS record objects do not support extensible attributes.

## Examples

`resource "infoblox_ns_record" "ns1"{`  
`  name = "test.com"`  
`  nameserver = "name.test.com"`  
`  addresses{`  
`     address = "10.3.2.5"`  
`     auto_create_ptr=true`  
`   }`  
`  addresses{`  
`    address = "10.3.23.3"`  
`    auto_create_ptr=false`  
`  }`  
`  addresses{`  
`    address = "10.3.1.2"`  
`    auto_create_ptr=true`  
`  }`  
`  dns_view = "default"`  
`}`  


`//IPV4 reverse mapping zone`  
`resource "infoblox_zone_auth" "zone_test" {`  
`  fqdn = "10.0.0.0/24"`  
`  view = "default"`  
`  zone_format = "IPV4"`  
`}`  
`//ns record created in a reverse mapping zone`  
`resource "infoblox_ns_record" "ns3"{`  
`  name = "0.0.10.in-addr.arpa"`  
`  nameserver = "name.test.com"`  
`  addresses{`  
`    address = "10.3.2.5"`  
`    auto_create_ptr = true`  
`  }`  
`  dns_view = "default"`  
`  depends_on = ["infoblox_zone_auth.zone_test"]`  
`}`