These instructions take you through the general steps required to set up your DNS for use with a root domain such as
example.com. You must be using Cloudflare DNS, if you wish to use this CNAME method with your root domain. If you would prefer to use a subdomain (e.g.
sub.example.com), please see Configuring DNS for a Subdomain.
These instructions are for setting up your existing DNS records with Cloudflare DNS. If you are switching to QUIC.cloud DNS, please see Using QUIC.cloud DNS.
Keep a Reference
Log into Cloudflare to edit your DNS setup. The first thing you should do, before you change anything, is to take a screenshot of your configuration. You want to have a reference in case you want to revert back.
While logged into Cloudflare, you will need to perform these basic steps:
- Adjust the TTL on your subdomain’s
Arecord to be very short while you work on it
- Add a new
Arecord for a backup subdomain
- Add a
CNAMErecord for any subdomain you also want to use with QUIC.cloud (OPTIONAL)
- Replace the
Arecord with a flattened
CNAMErecord that points to the QUIC.cloud domain
- Adjust the TTL on the flattened
CNAMErecord back to what the original
For more specific instructions for editing DNS records in the Cloudflare environment, please see Cloudflare’s own documentation.
If there is an
A record for your subdomain, adjust the TTL value to the smallest time period possible. This is so that you can make changes and not have to wait a long time for them to take effect.
Once the previous TTL has passed, the new TTL will take effect.
For example, the previous value was
60 minutes and you change it to
2 minutes. If it is 3:00pm when you change the value to
2, you must wait 60 minutes before that value is effective.
Create an A Record
Create a new
A record that points to your IP. You can give it any domain name that you’d like. It will serve as a back-up record in case you need to switch QUIC.cloud off. Example:
Create a CNAME Record (OPTIONAL)
If you want to also use a subdomain (like
www.example.com) with your root domain, it needs to have a
- If there is currently an
Arecord for the subdomain, delete it.
- Add a
CNAMErecord. Set Name to your subdomain (
www.example.com), Value to your root domain (
example.com), and keep the TTL set to the lowest possible value.
Create an ALIAS, ANAME, or Flattened CNAME Record
- Delete the
Arecord for your root domain.
- Create a
CNAMErecord. Set Name to your root domain, Value the same as the backup
Arecord you created earlier (e.g.
origin.example.com), and keep the TTL set to the lowest possible value.
Visit your site and verify that you can still access everything properly.
NOTE: At this point, all you have done is make some local changes to your own DNS. QUIC.cloud is not involved in this process. If you are having issues accessing your site, then it is not related to QUIC.cloud. It is likely to be an error in your DNS configuration. Refer to the backup screenshot you took before you started.
Edit the CNAME Record
CNAME record you added earlier now must be used to connect to QUIC.cloud. Edit it and change the Value field to the domain name given to you in your Dashboard (e.g.
NOTE: If you don’t see a domain name, you may need to enable the CDN first. Press the Enable CDN button and check again.
Visit your site again and verify that you can still access everything properly.
If it is not accessible, review your DNS configurations and run through the steps again. Check if your TTL for the old configuration has expired. Make sure that the correct amount of time has elapsed.
Once you have verified that your site is still accessible, you are finished making changes to the DNS. You can set the TTL for any new records to something more reasonable. Use the value of the original
A record, if you’re not sure.
OPTIONAL: Configure a Subdomain
If you want to use a subdomain (e.g.
www.example.com) in addition to your root domain, please follow our subdomain directions.
Once your DNS is set up, you’re ready to enable the CDN.