Other languages / Другие языки / Забонҳои дигар: Русский Тоҷикӣ

For a subdomain (e.g. blog.yourdomain.tj) to open, the parent domain's DNS zone must have the corresponding record.

Where to add the record

Depends on who manages DNS:

  • NS at Navju Cloud: client area → domain management → DNS Zone Editor
  • NS at Cloudflare: Cloudflare dashboard → DNS
  • NS at your hosting (cPanel): cPanel → DNS Zone Editor

Case 1: subdomain on the same server as the site

Create an A record:

  • Type: A
  • Name: blog
  • Value: your server IP (e.g. 195.158.10.20)
  • TTL: 3600

Case 2: subdomain points to another service

Create a CNAME:

  • Type: CNAME
  • Name: shop
  • Value: mystore.shopify.com
  • TTL: 3600

Case 3: wildcard subdomain (any *.yourdomain.tj)

  • Type: A
  • Name: *
  • Value: server IP

Any undefined subdomain hits this IP. Useful for multi-tenant apps.

After adding

Wait 5–15 minutes (TTL). Verify via DNS Lookup.

If the subdomain is on the same cPanel hosting — also create a Subdomain in cPanel (Domains → Subdomains). DNS is just a pointer — server-side config is also needed.

Răspunsul a fost util? 0 utilizatori au considerat informația utilă (0 Voturi)