Cloudflare Docs
Dns
Visit DNS on GitHub
Set theme to dark (⇧+D)

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 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 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

Using the dashboard

To create a DNS record in the dashboard:

  1. Log in to the Cloudflare dashboard and select an account and domain.
  2. Go to DNS.
  3. Click Add record.
  4. Choose a record Type .
  5. Complete the required fields.
  6. Click Save.

Using the API

To create records with the API, use a POST request.


Edit DNS records

Using the dashboard

To edit DNS records in the dashboard:

  1. Log in to the Cloudflare dashboard and select an account and domain.
  2. Go to DNS.
  3. On a specific record, click Edit.
  4. Make any necessary changes.
  5. Click Save.

Using the API

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.


Delete DNS records

Using the dashboard

To delete DNS records in the dashboard:

  1. Log in to the Cloudflare dashboard and select an account and domain.
  2. Go to DNS.
  3. On a specific record, click Edit.
  4. Click Delete.
  5. Click Delete again to confirm.

Using the API

To delete records with the API, use a DELETE request.