---
title: DNS Records
summary: DNS records are the available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g., <code>example.com</code>) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g., <code>www.example.com</code> or <code>*.example.com</code>) you will need to create a relevant CNAME record.
url: https://www.fastly.com/documentation/reference/api/tls/custom-certs/dns-records
---

DNS records are the available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g., <code>example.com</code>) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g., <code>www.example.com</code> or <code>*.example.com</code>) you will need to create a relevant CNAME record.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | The IP address or hostname of the DNS record. |
| `record_type` | string | The type of the DNS record. <code>A</code> specifies an IPv4 address to be used for an A record to be used for apex domains (e.g., <code>example.com</code>). <code>AAAA</code> specifies an IPv6 address for use in an A record for apex domains. <code>CNAME</code> specifies the hostname to be used for a CNAME record for subdomains or wildcard domains (e.g., <code>www.example.com</code> or <code>*.example.com</code>). |
| `region` | string | Specifies the regions that will be used to route traffic. Select DNS records with a <code>global</code> region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with a <code>na/eu</code> region to exclusively land traffic on North American and European POPs. |
| `type` | string | Resource type. |

