DNS records
DNS records are rules that tell domain name servers how to handle traffic to your domains and subdomains.
For domains managed by Netlify, we will automatically create “NETLIFY” records that point to our servers when you assign a domain or subdomain for your site. To learn more, visit our Forums for a verified support guide on this type of DNS record.
You can also add your own DNS records to point to other services, such as an email provider. Visit our Forums for a verified Support Guide on how to receive emails on your domain.
# Supported record types
Netlify DNS supports the following types of records:
- A: Address record, which is used to map host names to their IPv4 address.
- AAAA: IPv6 Address record, which is used to map host names to their IPv6 address.
- CAA: Certificate Authority (CA) Authorization, which is used to specify which CAs are allowed to create certificates for a domain.
- CNAME: Canonical name record, which is used to specify alias names.
- MX: Mail exchange record, which is used in routing requests to mail servers.
- NS: Name server record, which delegates a DNS zone to an authoritative server.
- SPF: Sender Policy Framework record, a deprecated record type formerly used in e-mail validation systems (use a TXT record instead).
- SRV: Service locator record, which is used by some voice over IP, instant messaging protocols, and other applications.
- TXT: Text record, up to 255 characters. Can contain arbitrary text and can also be used to define machine-readable data, such as security or abuse prevention information.
# Add a new record
To add a new DNS record:
- Go to the tab for your team.
- Select the domain you want to edit.
- At the bottom of the DNS records section, select Add new record.
- Choose the type of record to create from the menu and fill in the remaining options. The fields you need to fill out will depend on the type of record you select.
- Select Save to create the record and make the changes live.
Remember, it may take up to a few hours for record changes to propagate.
Note that you can host records for other services, such as your mail provider or your backend API, with us as long as you host at least one website with us that uses the domain.
Next step
If you’re adding DNS records as part of the process of moving your DNS service to Netlify DNS, your next step is to delegate your domain to Netlify.
# Edit a record
To make DNS changes, you need to first add a new record with the new value and then delete the old record. DNS allows multiple entries for the same name and type, so you can avoid downtime by making changes this way.
# Delete a record
To delete a DNS record:
- Go to the tab for your team.
- Select the domain you want to edit.
- In the DNS records section, find the record you want to delete.
- Select the record to expand the details and then select the delete option.
- Review the warning message and select Delete to confirm.
Remember, it may take up to a few hours for record changes to propagate.
# API endpoints
You can use the API to get DNS records, create DNS records, and more.
Did you find this doc useful?
Your feedback helps us improve our docs.