Step-by-Step Guide to Create a Subdomain

To create a subdomain for a domain hosted on GoDaddy or different account but managed under a different account without transferring the domain, follow these steps:

Step-by-Step Guide to Create a Subdomain

1. Understand Your Setup

  • Domain Registrar: The domain is managed in a different account (e.g., Godaddy, or another registrar).
  • Hosting Provider: Your hosting is in your GoDaddy account.
  • Objective: Create a subdomain (e.g., sub.example.com) and point it to your hosting server.

2. Access the DNS Management of the Domain

  • Login to the account where the domain is managed.
  • Navigate to the DNS Management or DNS Zone Editor of the domain.

3. Add an 'A' or 'CNAME' Record for the Subdomain

  • 'A' Record Method:
    1. Add a new 'A' record in the DNS settings.
    2. Set the subdomain (e.g., sub) in the Name/Host field.
    3. Enter the IP Address of your GoDaddy hosting server in the Value field.
    4. Save the record.
  • 'CNAME' Method:
    1. Add a CNAME record in the DNS settings.
    2. Set the subdomain (e.g., sub) in the Name/Host field.
    3. Point it to the main domain (e.g., www.example.com) or another target domain.
    4. Save the record.

4. Configure the Subdomain in GoDaddy Hosting

  • Log in to your GoDaddy Hosting Account.
  • Navigate to the cPanel or Hosting Dashboard.
  • Look for the Subdomains section.
  • Add the subdomain (e.g., sub.example.com):
    1. Specify the subdomain name (sub).
    2. Choose the main domain from the dropdown (e.g., example.com).
    3. Assign the document root (e.g., /public_html/sub or /sub).
    4. Save the configuration.

5. Verify the Subdomain

  • It may take a few minutes to propagate the DNS changes.

6. Test the Subdomain

  • Open your browser and type the subdomain URL (e.g., sub.example.com).
  • Ensure it points to the desired location in your hosting.

If you follow these steps carefully, you should be able to create a subdomain without transferring the domain. 

Comments

Popular posts from this blog

Java Script - Table of Content

Constraints in MySQL