
To create a CNAME record in Hostlag cPanel, log in to your dashboard, open the Zone Editor under the Domains section, select your domain, and click + CNAME Record. Enter your subdomain prefix (e.g., app, www, or blog) into the Name field, set the target canonical host (e.g., cname.vercel-dns.com or custom.myshopify.com) in the Record field, and click Save Record. CNAME routing across Nigerian registry DNS zones resolves globally in 15 minutes to 4 hours depending on TTL.
A Canonical Name (CNAME) record is an alias pointer in the Domain Name System (DNS). Unlike an A Record—which routes a domain name directly to a static numerical IPv4 address (like 192.0.2.1)—a CNAME points a hostname to another fully qualified domain name (FQDN).
When a browser queries a subdomain mapped to a CNAME:
The DNS resolver looks up your subdomain (e.g., store.yourbrand.com.ng).
The DNS server detects the CNAME alias and points the resolver to the canonical destination host (e.g., shops.myshopify.com).
The resolver requests the A record of the destination server.
The destination server returns the IP address, establishing the secure connection.
store.yourbrand.com.ng ---> CNAME: shops.myshopify.com ---> A Record: 23.227.38.65
Connecting Subdomains to External Cloud Hosting: Pointing an app frontend hosted on Vercel, Netlify, Render, or Railway to your custom .ng or .com.ng domain.
Routing E-Commerce Platforms: Setting up sub-stores on Shopify, Paystack Storefronts, or Selar.
Corporate Mail and Service Verification: Configuring DKIM signatures, Microsoft 365, Google Workspace domain aliases, or SendGrid email authentication.
Standard www Canonical Routing: Mapping www.yourbrand.ng to your root domain so visitors resolve to the identical website without certificate mismatches.
Before touching your DNS records, keep in mind RFC 1034 / 1912 DNS specifications: You cannot create a CNAME record for a root domain (the zone apex).
❌ Invalid: yourbrand.com.ng CNAME cname.vercel-dns.com (A root zone must contain mandatory SOA and NS records; RFC rules dictate no other record type can coexist with a CNAME at the same node).
✅ Valid: [www.yourbrand.com](https://www.yourbrand.com).ng CNAME yourbrand.com.ng
✅ Valid: api.yourbrand.com.ng CNAME hostlag-app.onrender.com
Note for Apex Domains: If you need your naked domain (
yourbrand.com.ng) to route to an external SaaS provider that provides only domain aliases, point your root@via an A record using their direct IP, and routewwwvia a CNAME.
An active Hostlag Web Hosting account (Startup, Medium, Established, Corporation, or VPS).
An active registered domain (.com.ng, .ng, .com, .org, etc.).
Access to your Hostlag cPanel Dashboard (usually accessible via yourdomain.ng/cpanel or through your Hostlag Client Area).
The destination canonical address provided by your external service (e.g., cname.vercel-dns.com, ghs.googlehosted.com, etc.).
Field Name Typical Input Value Purpose
Type CNAME Declares the record as a domain alias.
Name / Host subdomain.yourbrand.com.ng. The prefix your users type in their browser.
TTL (Time to Live) 14400 (or 3600 for active testing) Cache duration in seconds for recursive DNS resolvers
.Record / Target target.serviceprovider.com. The external canonical hostname being pointed to.
Open your browser and navigate to your direct cPanel address (e.g., [https://yourdomain.com.ng:2083](https://yourdomain.com.ng:2083)) or log in via your Hostlag Client Portal single sign-on (SSO).
Enter your cPanel administrative username and password.
In the search bar at the top of cPanel, type Zone Editor.
Alternatively, scroll down to the Domains section and click the Zone Editor icon.
In the Zone Editor window, you will see a list of all primary domains, addon domains, and subdomains connected to your cPanel account.
Quick Method: If you just need a standard subdomain, locate your domain and click + CNAME Record in the Quick Actions column.
Full Management Method (Recommended): Click Manage next to the specific domain. This displays every active DNS entry (A, AAAA, CNAME, MX, TXT) and prevents conflicting records.
Click the blue + Add Record button at the top right of the table.
Under the Type dropdown, select CNAME.
Fill in the three core fields:
Name: Enter the subdomain alias. If you want portal.yourdomain.com.ng, enter portal. cPanel will automatically append your root domain.
TTL: Enter 3600 (1 hour) if you are running an initial deployment, or leave the default 14400 (4 hours) for production.
Record: Enter the canonical destination hostname provided by your service provider (e.g., domains.myshopify.com). Ensure there are no trailing whitespace characters or missing periods.
Click Save Record.
cPanel will display a confirmation notification: "Success: You successfully saved the following CNAME record..."
A common error encountered in cPanel Zone Editor reads:
Error: The record could not be saved because a conflicting record exists.
Because a CNAME alias cannot coexist with any other record for the exact same hostname:
Filter the Zone Editor list by typing your subdomain name into the search bar.
Check if an A record, AAAA record, or TXT record already exists for that subdomain.
If an existing record (such as a default Hostlag parking A record) shares that exact name, click Delete next to the old record.
Add your new CNAME record again. It will now save without conflict.
Do not rely solely on your browser to test DNS updates; local browser caching and ISP resolvers can serve stale DNS records for hours. Use these verification methods to inspect raw authoritative output:
Open your terminal and run the standard dig utility:
Bash
dig CNAME store.yourdomain.com.ng +short
Expected Output:
Plaintext
shops.myshopify.com.
Open CMD or PowerShell and execute nslookup:
DOS
nslookup -type=CNAME store.yourdomain.com.ng
Expected Output:
Plaintext
store.yourdomain.com.ng canonical name = shops.myshopify.com
If you prefer not to use the terminal, verify global resolution using tools like:
whatsmydns.net: Select CNAME from the dropdown, enter your subdomain, and confirm green checkmarks populate across global edge nodes.
Google Public DNS Check: Inspect direct resolution using [https://dns.google/](https://dns.google/).
Q: Can I point my primary domain (example.com.ng) to an external app with a CNAME?
A: No. Under global RFC DNS standards, a root domain (naked apex) cannot be set as a CNAME. To connect a root domain to platforms like Vercel or Netlify, assign an A record pointing to the provider's dedicated IP address, then use a CNAME for the www version.
Q: How long does it take for a cPanel CNAME record to work in Nigeria?
A: Local changes made inside Hostlag’s cPanel Zone Editor apply to our local LiteSpeed nameservers within 5 minutes. Full global resolution across local ISPs (MTN, Airtel, Starlink, Spectranet) usually completes within 30 to 90 minutes, dictated by the TTL value you select.
Q: Does creating a CNAME break my business emails?
A: No, as long as you do not attempt to CNAME your root apex domain. MX records handle email routing; as long as your MX records continue pointing to your Hostlag mail server hostname, email deliverability is completely unaffected by subdomain CNAME records.
Q: What is the difference between an A Record and a CNAME Record?
A: An A record maps a name directly to a static IPv4 address (102.130.112.5). A CNAME maps a name to another domain name (target.domain.com), allowing the host server's IP address to change dynamically without breaking your configuration.
(Ready for the next topic—say "next" or paste your next knowledge base subject whenever you'd like to proceed.)