# Cloudflare DNS

> Connect Cloudflare so Vantuly creates DNS records, toggles the proxy and purges the cache for you.

Source: https://vantuly.com/docs/domains/cloudflare

If your domains use Cloudflare's name servers, connect Cloudflare once and Vantuly manages the DNS records for your sites.

## Connect Cloudflare

1. In Cloudflare, go to **My Profile → API Tokens → Create Token**.
2. Give the token **Zone → Zone → Read** and **Zone → DNS → Edit**, limited to the zones (domains) you use with Vantuly.
3. In Vantuly, go to **Settings → DNS providers → Cloudflare DNS**, paste the token and click **Connect Cloudflare**.

The token is stored encrypted and never shown again. **Disconnect** removes it.

## What you can do

- **Add via Cloudflare**: on a site's **Domains** tab, creates the A (and AAAA) records for the domain in one click.
- **DNS page**: see and edit every record in your zones (A, AAAA, CNAME, TXT, MX, CAA, SRV, NS), and **purge the Cloudflare cache** of a zone.
- **Proxy on or off**: turn the Cloudflare proxy (orange cloud) on or off per record.

## SSL with the Cloudflare proxy

Records are created as **DNS only** (grey cloud) so the server can get its Let's Encrypt certificate. After the certificate is issued you can turn the proxy on. When you do, set **SSL/TLS → Overview** to **Full (strict)** in Cloudflare. Other modes cause redirect loops or skip certificate checks.

## Namecheap

Domains on Namecheap's name servers work the same way: connect Namecheap under **Settings → DNS providers** with your API user, API key and the whitelisted client IP, and records for new sites are created for you.

For domains on Spaceship's name servers, see [Spaceship DNS](/docs/domains/spaceship).
