Dashways Logo
The Ultimate Managed Hosting Platform

How to Add Wildcard CNAME Record to Swipe Pages

Marcus Wong
By Marcus Wong
/ January 12, 2021
/ Last updated on September 23, 2021
< Back to Blog
Disclosure: The opinions expressed in this post are my own. This post may also contain affiliate links, which means that I will receive a commission if you decide to purchase through my links, at no additional cost to you.

Tired of adding CNAME records over and over again whenever you have to create a new custom subdomain on Swipe Pages? Well this neat little trick will allow you to set up your CNAME records once, and never have to touch it again whenever you have to create new subdomains on Swipe Pages.

How Does This Work?

Well, this is not really a trick. It is actually setting up a simple wildcard CNAME record. This record will "catch" any subdomains the user enters, and point it to the same target that you have specified.

Swipe Pages provide the same CNAME target whenever you create new subdomains. So this means that whenever you set up a new subdomain on Swipe Pages, it will be covered by the wildcard CNAME, and you do not have to manually create a new CNAME record for that anymore.

A Little Tip on Wildcard CNAMEs

Existing or normal CNAME records will always take precedence over wildcard CNAME records. This way, you have more control in specifying the subdomains that you want to point elsewhere, and not to Swipe Pages.

Prerequisites

You need a DNS with wildcard CNAME facility. I'm using Cloudflare's DNS, and they provide the option to use wildcard CNAME records. If you do not have a Cloudflare account, you can register one for free and use their DNS. The functions that I will be showing you does not require a paid plan.

How to Configure Wildcard CNAME Records on Cloudflare

Follow along as I guide you on this detailed walkthrough on how to configure a wildcard CNAME record.

Here's What It Looks Like Without Wildcard CNAME

Before showing you how to set up a wildcard, let's take a look at what happens without one. Let's say I have 3 subdomains that I want to create on Swipe Pages, australia.dashways.com, belgium.dashways.com and china.dashways.com. I will then have to input each one individually in separate CNAME records for each of them. Furthermore, whenever I need to add more subdomains in the future, such as denmark.dashways.com, england.dashways.com, etc, I will have to create unique individual CNAME records for these as well.

Individual CNAME Example

Here's What It Looks Like When You Have a Wildcard CNAME in Place

Following the same example as above, I only need to create 1 CNAME record to cover all subdomains, including future subdomains that I eventually create.

All you need to do to activate this wildcard is to add an asterisk in the Name field (*). (Remember that not all DNS providers support wildcard CNAMEs like Cloudflare, so check first if it's available)

Wildcard CNAME Example

Once you have done this, Cloudflare will recognize this as a wildcard CNAME and will point any subdomains to the target that you have specified, unless there are other CNAME records that exist, which will override the wildcard in an individual level.

And We're Done

You no longer need to manually key in CNAME records for each subdomain that you create on Swipe Pages from here on!

If you found this guide useful, be sure to also check on my other guide on how to use a root domain with Swipe Pages with wildcard matching.

Marcus Wong
Article written by Marcus Wong
January 12, 2021