Manage DNS records
Consider the sections below for step-by-step instructions on managing DNS records at Cloudflare.
To better understand what DNS records are, refer to Overview. For context around common records you want to review when getting started at Cloudflare, refer to review DNS records.
To create a DNS record in the dashboard:
- Log in to the Cloudflare dashboard ↗ and select an account and domain.
- Go to DNS > Records.
- Select Add record.
- Choose a record Type.
- Complete the required fields, which vary per record. Particularly important fields (for some records) include:
- Proxy status: For
A
,AAAA
, andCNAME
records, decide whether hostname traffic is proxied through Cloudflare. - TTL: Short for Time to Live, this field controls how long each record is valid and — as a result — how long it takes for record updates to reach your end users.
- Comment and Tag: Record attributes meant for your reference.
- Proxy status: For
- Select Save.
To create records with the API, use a POST request. For field definitions, select a record type under the request body specification.
For specific API examples, refer to DNS record types.
To edit DNS records in the dashboard:
- Log in to the Cloudflare dashboard ↗ and select an account and domain.
- Go to DNS > Records.
- On a specific record, select Edit.
- Make any necessary changes.
- Select Save.
To update part of a record with the API, use a PATCH request. If you want to overwrite the entire existing record, use a PUT request.
To delete DNS records in the dashboard:
- Log in to the Cloudflare dashboard ↗ and select an account and domain.
- Go to DNS > Records.
- On a specific record, select Edit.
- Select Delete.
- Select Delete again to confirm.
To delete records with the API, use a DELETE request.
For guidance on how to apply several changes to your zone records in just one action, refer to Batch record changes.