# Manage Cloudflare DNS records for your servers

Connect your Cloudflare account to point DNS records at a new server the moment it boots, with no IP addresses to copy.

## Connect Cloudflare

1. Go to **Integrations** → [Cloudflare](https://cloud.betterstack.com/team/t0/integrations/cloudflare ";_blank")
2. Click **Sign into Cloudflare** and allow access in Cloudflare.

The connected account shows the domains it manages and the DNS records Better Stack created in them. To connect another Cloudflare account, click **Sign into Cloudflare** again.

![Connected Cloudflare account](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/0fab7c08-1925-4054-e687-d1956cab8100/md2x =2880x1234)

## Point DNS records at a new server

1. Go to **Servers** → [Create server](https://cloud.betterstack.com/team/t0/servers/new ";_blank")
2. Under **Cloudflare DNS**, check **Configure DNS records**.
3. Select the **Cloudflare account** and the **Domain**.
4. Under **DNS record**, enter the subdomain for each server. Use `@` for the naked domain and `*` for a catch-all.
5. Click the cloud icon of a record to switch the Cloudflare proxy on or off. A proxied record gets Cloudflare's DDoS protection and free HTTPS.
6. Click **Create server**.

Each record name gets an A record for the server's IPv4 address and an AAAA record for its IPv6 address, as soon as the server has its addresses. When you remove the server, we delete its records from Cloudflare.

![Cloudflare DNS records in the create server form](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/62aac02f-2dc7-49ad-cec0-3ed4421c1800/md2x =2100x740)

## Good to know

- **Records are set when you create a server.** To change them later, click **Configure** on the server's **Cloudflare DNS records** card, which opens the Cloudflare dashboard.
- **A server needs a public IPv4 address** for Cloudflare DNS records, because each record includes an A record.

## Need help?

Please let us know at hello@betterstack.com.  
We're happy to help! 🙏
