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:
- Add a new 'A' record in the DNS settings.
- Set the subdomain (e.g.,
sub
) in the Name/Host field. - Enter the IP Address of your GoDaddy hosting server in the Value field.
- Save the record.
- 'CNAME' Method:
- Add a CNAME record in the DNS settings.
- Set the subdomain (e.g.,
sub
) in the Name/Host field. - Point it to the main domain (e.g.,
www.example.com
) or another target domain. - 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
):- Specify the subdomain name (
sub
). - Choose the main domain from the dropdown (e.g.,
example.com
). - Assign the document root (e.g.,
/public_html/sub
or/sub
). - Save the configuration.
- Specify the subdomain name (
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.
Comments
Post a Comment