<commit_before>---
layout: "linode"
page_title: "Linode: linode_domain_record"
sidebar_current: "docs-linode-resource-domain-record"
description: |-
  Manages a Linode Domain Record.
---

# linode\_domain

Provides a Linode Domain resource.  This can be used to create, modify, and delete Linode Domains through Linode's managed DNS service.
For more information, see [DNS Manager](https://www.linode.com/docs/platform/manager/dns-manager/) and the [Linode APIv4 docs](https://developers.linode.com/api/v4#operation/createDomain).

The Linode Guide, [Deploy a WordPress Site Using Terraform and Linode StackScripts](https://www.linode.com/docs/applications/configuration-management/deploy-a-wordpress-site-using-terraform-and-linode-stackscripts/), demonstrates the management of Linode Domain resources in the context of Linode Instance running WordPress.

## Example Usage

The following example shows how one might use this resource to configure a Domain Record attached to a Linode Domain.

```hcl
resource "linode_domain" "foobar" {
    domain = "foobar.example"
    soa_email = "<EMAIL>"
    tags = ["foo", "bar"]
}

resource "linode_domain_record" "foobar" {
    domain_id = "${linode_domain.foobar.id}"
    name = "www"
    record_type = "CNAME"
    target = "foobar.example"<commit_msg>Add missing required argument to example<commit_after>---
layout: "linode"
page_title: "Linode: linode_domain_record"
sidebar_current: "docs-linode-resource-domain-record"
description: |-
  Manages a Linode Domain Record.
---

# linode\_domain

Provides a Linode Domain resource.  This can be used to create, modify, and delete Linode Domains through Linode's managed DNS service.
For more information, see [DNS Manager](https://www.linode.com/docs/platform/manager/dns-manager/) and the [Linode APIv4 docs](https://developers.linode.com/api/v4#operation/createDomain).

The Linode Guide, [Deploy a WordPress Site Using Terraform and Linode StackScripts](https://www.linode.com/docs/applications/configuration-management/deploy-a-wordpress-site-using-terraform-and-linode-stackscripts/), demonstrates the management of Linode Domain resources in the context of Linode Instance running WordPress.

## Example Usage

The following example shows how one might use this resource to configure a Domain Record attached to a Linode Domain.

```hcl
resource "linode_domain" "foobar" {
    domain = "foobar.example"
    soa_email = "<EMAIL>"
    type = "master"
    tags = ["foo", "bar"]
}

resource "linode_domain_record" "foobar" {
    domain_id = "${linode_domain.foobar.id}"
    name = "www"
    record_type = "CNAME"
    target = "foobar.example"
{'fraction_non_alphanumeric': 0.10883579825559347, 'fraction_numerical': 0.0015168752370117557, 'mean_word_length': 4.673118279569892, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6061549', 'n_tokens_mistral': 829, 'n_tokens_neox': 796, 'n_words': 242}