Post

Create Sub Domain

🛠️ How to Create a Subdomain DNS Entry for test.example.com

You’re setting up a subdomain DNS entry so that test.example.com points to something — either an IP address or another domain.


✅ What You Need

  1. Access to your DNS manager

    • Could be at your registrar (e.g., GoDaddy, Namecheap) or a DNS host (e.g., Cloudflare, Route 53).
  2. Destination target

    • An IP address (for A record), or a domain name (for CNAME).

🔧 Step-by-Step: Creating the DNS Entry

1. Log in to Your DNS Manager

Wherever your DNS is controlled for example.com.

2. Go to DNS Settings / Zone Editor

Find the place where you can add DNS records.

3. Add a New Record

  • Type: Choose either:

    • A if pointing to an IP (e.g., 192.0.2.123)
    • CNAME if pointing to another domain (e.g., app.hosting.com)
  • Name / Host / Subdomain:
    Enter test
    (Some DNS managers might require test.example.com, others just test)
  • Value / Points To:
    • For A: the IP address
    • For CNAME: the domain name
  • TTL (Time to Live):
    Leave it as default (3600 seconds is fine)

💡 Example A Record

Type Name Value TTL
A test 192.0.2.123 3600

💡 Example CNAME Record

Type Name Value TTL
CNAME test app.hosting.com 3600

✅ Save the Record

Once saved, the subdomain should become active soon.


⏱️ Wait for DNS Propagation

  • It may take a few minutes up to a few hours.
  • Test with:

🧩 Need More?

Let me know if you also need:

  • Web server configuration (e.g., NGINX, Apache)
  • SSL/HTTPS setup

So your new sub domain website is not working

Here’s the steps that should work if its not working

  • Create domain entry A record to ip address on domain registry
  • Add domain listing on host
  • Create subdomain site

Where to start debugging

Is the problem at the website host (Digital Ocean for example) or is it with the domain registrar (cloudflare for example).

First try access the domain at https://www.whatsmydns.net/ if that fails to find your domian the problem is at the registrar.

When my ssl fails to register for my test.test.site subdomain its because i have not put a dns entry into cloudflare for test.test.site

This post is licensed under CC BY 4.0 by the author.