Cloudflare Docs
DNS
DNS
Edit this page on GitHub
Set theme to dark (⇧+D)

Nameservers

As explained in How DNS works, from the moment a user types an address (www.example.com) into their web browser, the resolution of a DNS query takes place. Also, the process behind DNS resolution involves different computers (or servers).

In the context of Cloudflare DNS, nameservers refer to authoritative nameservers, which are the last stop in the DNS query resolution. When a nameserver is authoritative for example.com, it means that DNS resolvers will consider responses from this nameserver when a user tries to access example.com.

​​ Authoritative nameservers offering

Within Cloudflare, and depending on your plan, you can choose between using Cloudflare-branded nameservers or setting up your own custom nameservers. The names for Cloudflare-branded nameservers are automatically assigned and cannot be changed.

Regardless of the type you choose, for these nameservers to be authoritative for your domain, you need to update your domain nameservers. Updating your nameservers is required to activate your domain on Cloudflare and use most of our application services.

​​ Standard nameservers

When you add a domain on a primary (full) DNS setup, Cloudflare automatically assigns two standard nameservers for your zone.

Standard nameservers are hosted on ns.cloudflare.com and follow the pattern <proper_name>.ns.cloudflare.com.

To know the reason behind these nameserver names, refer to our blog.

​​ Advanced nameservers

If you are on an Enterprise plan, you have Foundation DNS, which includes advanced nameservers.

Advanced nameservers are hosted on foundationdns.com, foundationdns.net, and foundationdns.org.

Each zone that uses advanced nameservers is assigned a set of three nameservers names: <color>.foundationdns.com, <color>.foundationdns.net, and <color>.foundationdns.org.

​​ Custom nameservers

With custom nameservers, your nameservers are hosted on your own domain (or domains) and, in this sense, are not Cloudflare branded.

You provide fully qualified domain names (ns1.mydomain.com) for your nameservers, and Cloudflare assigns one IPv4 and one IPv6 to each of your custom nameservers.