Domains and DNS
How to check if a domain name is available
Run a check on domain name availability with a Whois or RDAP lookup, then read the status codes that show when a deleted domain can be registered again.
· Mateo Cardenas
HomeGuidesDomains and DNSWhat is Cloudflare DNS and how do you set it up?
Cloudflare DNS is an authoritative DNS service.1, source 1 In a primary setup, Cloudflare is your primary authoritative DNS provider.2, source 2 To set it up, you add your domain in the Cloudflare dashboard and then update your nameservers, typically where you registered your domain, to activate the domain on Cloudflare.3, 4, sources 3 and 4
Cloudflare DNS is available on all Cloudflare plans.1, source 1 Cloudflare says its DNS service protects your business from DDoS attacks.1, source 1 Before you can start using Cloudflare DNS, you must first have a domain.1, source 1 DNS records make resources available on your domain.1, source 1
Nameservers are DNS servers that answer DNS queries about the domains they are authoritative for.4, source 4 In the context of Cloudflare DNS, nameservers refer to authoritative nameservers.4, source 4 Authoritative nameservers hold the definitive DNS records for your domain and provide the final response in DNS resolution.4, source 4 1.1.1.1 is Cloudflare's public DNS Resolver, a different product from its authoritative DNS service, and Cloudflare points consumers who want a more private way to browse the Internet to it.1, source 1
Cloudflare DNS offers a few different setup options.2, source 2 Depending on your plan, you can use Cloudflare-branded nameservers or set up your own custom nameservers.4, source 4 The names of Cloudflare-branded nameservers are assigned automatically and cannot be changed.4, source 4 With custom nameservers, your nameservers are hosted on your own domain and are not Cloudflare branded.4, source 4
A primary setup, also known as full, is the most common setup and the only one available on Free or Pro plans.2, source 2 In a primary setup, DNS resolvers consider the DNS records that you have on Cloudflare when a visitor tries to access your website or application.2, source 2 A primary setup involves steps at Cloudflare, at your registrar and at your previous DNS provider if you were using one.2, source 2
A CNAME setup, also known as partial setup, lets you use Cloudflare's reverse proxy while you keep your primary and authoritative DNS provider.5, source 5 A CNAME setup lets you proxy only individual subdomains through Cloudflare when you cannot change your authoritative DNS provider.5, source 5 A CNAME setup (partial) is only available on a Business or Enterprise plan.5, source 5 Partial setups are not supported on Cloudflare Registrar domains.5, source 5
Domains on a CNAME setup do not use Cloudflare authoritative nameservers.5, source 5 On a CNAME setup, the nameservers at your registrar are not changed.6, source 6 Instead, the resolution of your records to Cloudflare depends on CNAME records added at your authoritative DNS provider.5, source 5
On a CNAME setup you can only proxy your zone apex to Cloudflare if your authoritative DNS provider supports CNAME flattening.5, source 5 DDoS protection for attacks against DNS infrastructure is only available for domains on a primary (full) setup.5, source 5
To create a DNS record in the dashboard, go to the DNS Records page, select Add record and choose a record Type.7, source 7 You finish by selecting Save.7, source 7 At least one IP address resolution record is required for each domain on Cloudflare.8, source 8
A and AAAA records map a domain name to one or multiple IPv4 or IPv6 addresses.8, source 8 CNAME records map a domain name to another, canonical, domain name.8, source 8 CNAME flattening allows you to add a CNAME record at your apex domain.1, source 1 A proxied CNAME record can point to other CNAME records, but the final record must point to a hostname with a valid IP address.8, source 8
A DomainKeys Identified Mail (DKIM) record ensures email authenticity by cryptographically signing emails.8, source 8 A DMARC record helps generate aggregate reports about your email traffic.8, source 8
A text (TXT) record lets you enter text into the DNS system.8, source 8 A Certificate Authority Authorization (CAA) record specifies which Certificate Authorities are allowed to issue certificates for a domain.8, source 8 With Cloudflare as your authoritative DNS, you do not need to create an SOA record.8, source 8
To edit a record in the dashboard, select Edit on that record, make your changes and select Save.7, source 7 When your hosting provider or origin IP address changes, update the Content value of the relevant DNS records, usually A or AAAA records.7, source 7 To update part of a record with the API, use a PATCH request, and to overwrite the entire existing record, use a PUT request.7, source 7 To delete a record in the dashboard, select Edit on it, select Delete and select Delete again to confirm.7, source 7
The proxy status controls whether HTTP/HTTPS traffic for a record routes through Cloudflare's network or goes directly to your origin server.9, source 9 Proxied (orange cloud) means web traffic goes through the Cloudflare network, which provides caching, DDoS protection, and other security features.3, source 3
A DNS query to a proxied record is answered with Cloudflare anycast IP addresses instead of the origin IP address.9, source 9 By default, all proxied records have a TTL of Auto, which is set to 300 seconds and cannot be edited.9, source 9 Only records used for IP address resolution, which are A, AAAA and CNAME records, can be proxied.9, source 9 Cloudflare recommends proxying all A, AAAA, and CNAME records that serve web traffic.9, source 9
DNS only (gray cloud) means Cloudflare returns the DNS record value but does not proxy traffic.3, source 3 When a record is DNS-only, Cloudflare responds with your server's actual IP address.9, source 9 For DNS-only records, Cloudflare cannot provide HTTP/HTTPS analytics, only DNS analytics.9, source 9
Other record types, such as MX or TXT, are always DNS-only.9, source 9 DNS-only is only recommended for records that do not serve web traffic, such as records used for email routing or third-party domain verification.9, source 9 A DNS-only record on a web-serving name leaves your origin IP addresses visible to anyone who queries it, potentially exposing your server to bad actors and DDoS attacks.9, source 9
A pending zone is shown as Pending Nameserver Update on the Cloudflare dashboard.6, source 6 On a primary setup, a zone is pending when you have not changed your authoritative nameservers or Cloudflare has not yet authenticated your change.6, source 6 Cloudflare responds to DNS queries for pending zones on the assigned Cloudflare nameserver IPs, but the zone is not active.6, source 6 A pending zone should not be used for production traffic.6, source 6
After you add your domain, Cloudflare checks on a schedule whether you have updated your nameservers, and the first check occurs after 60 seconds.6, source 6 You can re-trigger the activation check via the API or on the dashboard, in the domain's Overview page.6, source 6 For a primary setup without multi-provider DNS, only the assigned Cloudflare nameservers must be listed at the registrar, and nameservers from other DNS providers cause failure.6, source 6 A zone is active once Cloudflare has authenticated your nameserver changes or verification TXT record, and you can then proxy domain traffic through Cloudflare.6, source 6
When your domain is Active, you receive an email from Cloudflare, and the domain has a status of Active on the Domains page of your account.3, source 3 Most online lookup tools use cached query results, so it may take longer for them to show the updated nameservers.3, source 3
CLI commands will show your Cloudflare-assigned nameservers.3, source 3 On macOS and Linux, the commands for checking nameservers include whois <DOMAIN_NAME>.3, source 3 On Windows, the commands for checking nameservers include nslookup -type=ns <DOMAIN_NAME> 1.1.1.1.3, source 3 On a primary setup, a zone is Moved when it has failed multiple DNS checks because your domain's NS records stopped listing the Cloudflare nameservers.6, source 6
DNS Security Extensions (DNSSEC) adds an extra layer of authentication to DNS, ensuring requests are not routed to a spoofed domain.10, source 10 When a domain has DNSSEC enabled, the DNS provider digitally signs all of its DNS records.10, source 10 Signing prevents anyone else from issuing false DNS records on your behalf and redirecting traffic intended for your domain.10, source 10
DS and DNSKEY records help implement DNSSEC.8, source 8 When you change your nameservers without disabling DNSSEC, DNSSEC prevents Cloudflare's DNS records from resolving properly.10, source 10 Validating resolvers will return SERVFAIL if you change nameservers before the old DS TTL has fully expired, because the cached DS records will not match Cloudflare's DNSSEC keys.10, source 10 To enable DNSSEC, go to the DNS Settings page in the Cloudflare dashboard.10, source 10
On the DNS Settings page, click Enable DNSSEC under DNSSEC.10, source 10 When you enable DNSSEC, Cloudflare signs your zone, publishes your public signing keys, and generates your DS record.10, source 10 After enabling DNSSEC in Cloudflare, add the DS record to your registrar.10, source 10 If your registrar does not list Algorithm 13, Cloudflare's preferred cipher choice, it may be called ECDSA Curve P-256 with SHA-256.10, source 10
To roll back DNSSEC, remove the DS record at your registrar and keep zone signing enabled in Cloudflare until the DS TTL has fully expired at the parent zone.10, source 10
Cloudflare DNS is an authoritative DNS service. It holds the definitive DNS records for your domain and provides the final response in DNS resolution. In a primary setup, Cloudflare is your primary authoritative DNS provider.
Yes, Cloudflare says its DNS service protects your business from DDoS attacks. DDoS protection for attacks against DNS infrastructure is only available for domains on a primary (full) setup. A proxied record can protect your origin server from DDoS attacks, but a DNS-only record on a web-serving name leaves your origin IP addresses visible to anyone who queries it.
Add your domain to Cloudflare, then replace the nameservers at your registrar. In the dashboard, go to Domains, select Onboard a domain, enter your apex domain and review your DNS records. At your registrar, turn off DNSSEC if it is active, remove your existing authoritative nameservers and add the two nameservers Cloudflare assigned.
Wait up to 24 hours while your registrar updates your nameservers. Most online lookup tools use cached query results, so it may take longer for them to show the updated nameservers.
No, Cloudflare DNS is an authoritative DNS service for your domain. 1.1.1.1 is Cloudflare's public DNS Resolver, and Cloudflare points consumers who want a more private way to browse the Internet to it.
Check the Domains page of your account for a status of Active. When your domain is Active, you also receive an email from Cloudflare, and CLI commands show your Cloudflare-assigned nameservers. A pending zone shows Pending Nameserver Update on the dashboard instead.
Every fact on this page comes from one of these, checked before it goes live.
Domains and DNS
Run a check on domain name availability with a Whois or RDAP lookup, then read the status codes that show when a deleted domain can be registered again.
· Mateo Cardenas
Domains and DNS
Pick a domain name whose labels meet the character and length rules, then check its top-level domain and whether it could infringe someone else's rights.
· Mateo Cardenas
Domains and DNS
Learn how to do a DNS lookup with nslookup, Resolve-DnsName, dig and host. Understand DNS record types, view your settings and read the query results.
· Mateo Cardenas
Domains and DNS
Learn how to register a domain name: choose a registrar, give accurate contact details, and understand renewal, free domain and transfer rules.
· Mateo Cardenas