Adding a Domain to cloudflare.com
This article explains how to add a domain to Cloudflare, configure DNS records, update nameservers, and enable HTTPS for your site.
Cloudflare is a service for managing domain DNS records, caching content, and configuring SSL/TLS. By connecting your domain to Cloudflare, you can manage DNS records, set up HTTPS, and utilize the service’s additional features.
How to Add a Domain to Cloudflare
Let’s look at connecting the domain example.domain to a server with the public IP address 192.0.2.1 (an example address).
- Go to the official Cloudflare website and create an account or log in to an existing one.
- Click Add a domain (or Onboard a domain) and enter the domain name, e.g., example.domain.
- Select a suitable Cloudflare plan and proceed with the setup.
- Cloudflare will scan for existing DNS records. Review the detected records and add or modify them if necessary.
- Ensure that an A record has been created for the domain pointing to your server’s public IP address: An example.domain → 192.0.2.1
- Continue the setup process and copy the nameservers (NS) provided by Cloudflare.
- Go to your domain registrar’s control panel and replace the current nameservers with the ones specified by Cloudflare.
- Wait for confirmation that the nameservers have been updated and the domain has been activated in Cloudflare.
Please note! Updating nameservers can take up to 24–72 hours, though it usually happens faster. Until the verification is complete, the domain may appear in Cloudflare with the status Pending Nameserver Update.
Configuring the Domain after Connection
Once the domain is activated, you can:
- Manage DNS records in the DNS → Records section.
- Configure SSL/TLS and HTTPS for the site.
- Enable static content caching.
- Configure request handling rules and other available Cloudflare features.
If Cloudflare proxying (Proxied) is enabled for a DNS record, HTTP/HTTPS traffic to the corresponding host will pass through Cloudflare.
Ensure that the server accepts connections from Cloudflare IP addresses and that they are not blocked by firewall settings. The current list of Cloudflare IP subnets is published on the official website.
If you have any questions, you can ask them in the online chat in the lower right corner of the site or by ticketing the Techsupport Department.