---
title: vultr_dns_domain
url: https://docs.vultr.com/reference/terraform/resources/dns_domain
description: A resource for managing Vultr DNS domains, allowing creation and configuration of domain records with an associated IP address.
publish_date: 2025-09-15T13:31:19.856094Z
last_updated: 2025-09-15T14:14:29.466429Z
---

# vultr_dns_domain

Provides a Vultr DNS Domain resource. This can be used to create, read, modify, and delete DNS Domains.

## Example Usage

Create a new DNS Domain

```hcl
resource "vultr_dns_domain" "my_domain" {
	domain = "domain.com"
	ip = "66.42.94.227"
}
```

## Argument Reference

The following arguments are supported:

* `domain` - (Required) Name of domain.
* `ip` - (Optional) Instance IP you want associated to domain. If omitted this will create a domain with no records.
* `dns_sec` - (Optional)  The Domain's DNSSEC status. Valid options are `enabled` or `disabled`. Note `disabled` is default

## Attributes Reference

The following attributes are exported:

* `id` - The ID is the name of the domain.
* `domain` -  Name of domain.
* `date_created` - The date the domain was added to your account.
* `dns_sec` -  The Domain's DNSSEC status

## Import

DNS Domains can be imported using the Dns Domain `domain`, e.g.

```
terraform import vultr_dns_domain.name domain.com
```