---
title: "infoblox_dtc_server Resource"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/1170604434/infoblox_dtc_server%20Resource"
format: markdown
---
The `infoblox_dtc_server` resource enables you to perform create, update, and delete operations on a DTC server in a NIOS appliance. The resource represents the ‘dtc:server’ WAPI object in NIOS. For more information related to the DTC server object, see *Managing DNS Traffic Control Servers* in the *[Infoblox NIOS Documentation](https://docs.infoblox.com/)*.

The following table describes the parameters you can define in the `infoblox_dtc_server` resource block:

| **Parameter** | **Required/Optional** | **Description** |
| --- | --- | --- |
| `name` | Required | Specifies the desired name of the DTC server as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI. |
| `host` | Required | Specifies the address or the FQDN of the DTC server. |
| `disable` | Optional | Determines whether the DTC server object is enabled or disabled.  
The default value is `false`. |
| `monitors` | Optional | Specifies the list of IP addresses or FQDN and monitor pairs to be used for additional monitoring.  
To use this parameter, configure the following fields:<br>- `host`: IP address or FQDN of the server to be used for monitoring.
- `monitor_name`: The monitor name related to the server.
- `monitor_type`: The monitor type related to the server. |
| `auto_create_host_record` | Optional | Determines whether a single read-only A, AAAA, or a CNAME record corresponding to the configured host name must be automatically created or updated when the resource block is run. According to the host name specified, a record is created as follows:<br>- A record if an IPv4 address is specified
- AAAA record if an IPv6 address is specified
- CNAME record if an FQDN is specified<br>The default value is `true`. |
| `use_sni_hostname` | Optional | Determines whether a host name for Server Name Indication (SNI) must be used.  
The default value is `false`. |
| `sni_hostname` | Optional | Specifies the host name for Server Name Indication (SNI) in FQDN format. You must set `use_sni_hostname` to `true` to configure this parameter. |
| `comment` | Optional | Describes the DTC server. |
| `ext_attrs` | Optional | Specifies the set of NIOS extensible attributes that will be attached to the DTC server. |

## Example of DTC Server Resource

`//creating DTC server with SNI host and monitors defined`  
`resource "infoblox_dtc_server" "server"{`  
` name = "terraform_server.com"`  
` host = "10.1.4.5"`  
` comment = "testing server terraform"`  
` sni_hostname = "sni.host.com"`  
` use_sni_hostname = true`  
` monitors {`  
`        host = "10.1.4.5"`  
`        monitor_name = "sip"`  
`        monitor_type = "sip"`  
`      }`  
` ext_attrs = jsonencode({`  
`    "Site" = "Blr"`  
` })`  
` auto_create_host_record = true`  
`}`