How to add your domain to Cloudflare and copy DNS records
Once Cloudflare is connected, you can put a domain on Cloudflare, copy its DNS records there and choose which names go through Cloudflare's proxy, all from the panel.
Steps
- Log in to the control panel (
https://your-server:2083) and open Cloudflare (section Domains). - Click Add to Cloudflare next to the domain. The message lists two Cloudflare nameservers, for example
ada.ns.cloudflare.com, bob.ns.cloudflare.com. Note them. - Click Manage next to the domain.
- Click Copy DNS records from this server. The message says how many records were copied, for example 9 record(s) copied to Cloudflare.
- Check the records in the table below. The Proxy column shows Proxied or DNS only; click it to switch a record.
- At your domain registrar, replace the nameservers with the two Cloudflare nameservers from step 2.
- Wait. The state changes from Waiting for nameservers to Active when Cloudflare sees the change (usually within a few hours).
Which records are copied
A,AAAA,CNAME,MX,TXTandCAArecords are copied.NSrecords are not copied: Cloudflare serves the zone then.SRVrecords are not copied: add them by hand in Cloudflare if you need them.- Records that already exist at Cloudflare with the same type, name and value are left alone, so you can click the button again safely.
- Only the domain itself and
wwware copied as Proxied. Everything else is DNS only.
mail, ftp and webmail on DNS only. Email and file transfer cannot go through Cloudflare's proxy.Good to know
- After the nameserver change, Cloudflare answers for the domain. Records you change in Zone Editor on this server have no effect anymore: change them in Cloudflare (or here, then click Copy DNS records from this server again for new records).
- If DNSSEC is on for the domain here, remove the DS record at the registrar and wait a day before changing the nameservers.
- A wildcard certificate cannot be issued while the domain uses Cloudflare's nameservers. Normal free certificates keep working; see SSL with Cloudflare.
- Your visitors' real IP addresses still reach your website's statistics and protection here.
Common questions
My site shows "too many redirects" after switching to Cloudflare.
Set Cloudflare's SSL mode to Full (strict). See cache and SSL settings.
Can I copy records from Cloudflare back to the server?
No. Copying goes only from this server to Cloudflare.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to connect Cloudflare to your control panel (API token)
Create a Cloudflare API token with the right permissions and connect it to your control panel, so you can manage your domains on Cloudflare from the panel.
- How to purge Cloudflare cache and set SSL mode from the panel
Purge Cloudflare's cache, turn on development mode, set SSL to Full (strict) and Always use HTTPS for your domain directly from the control panel.
- SSL certificates for websites behind Cloudflare
How free SSL certificates are issued and renewed when your website uses Cloudflare's proxy, which SSL mode to choose, and the order to switch it on.
- DNS changes not working or not showing yet
You changed a DNS record or nameservers but the old address still shows. Find out why (DNS hosted elsewhere, TTL, missing trailing dot) and how to fix it.