Manage DNS records
When you add a new domain to Cloudflare, Cloudflare automatically scans for common records and adds them to your account’s DNS > Records page.
This scan is not guaranteed to find all existing DNS records, so make sure that all DNS records are added in the Cloudflare DNS > Records page before changing your nameservers to Cloudflare nameservers.
If you want more control over which DNS records are imported and how, use the bulk imports.
Create 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.
Click 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
Click Save.
To create records with the API, use a POST request.
For specific API examples, refer to DNS record types.
For field definitions, refer to our API documentation (visible once you select Show definitions).
Edit DNS records
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, click Edit.
- Make any necessary changes.
- Click Save.
Delete DNS records
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, click Edit.
- Click Delete.
- Click Delete again to confirm.