Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. WebHost Manager
  3. How to use a subdomain as an account's primary domain
Updated on June 21, 2024

WebHost Manager

  • Folder icon closed Folder open iconHow to manage WebHost Manager packages
  • Folder icon closed Folder open iconHow to manage web hosting accounts with WHM
  • Folder icon closed Folder open iconHow to use the WHM Feature Manager
  • Folder icon closed Folder open iconHow to manage account passwords in WHM
  • Folder icon closed Folder open iconHow to use a subdomain as an account's primary domain
  • Folder icon closed Folder open iconHow to migrate an addon domain to its own cPanel account
  • Folder icon closed Folder open iconHow to use skeleton files to provide default content for customer accounts
  • Folder icon closed Folder open iconHow to manage two-factor authentication for resellers in WHM
  • Folder icon closed Folder open iconHow to manage and secure the CSF firewall
  • Folder icon closed Folder open iconHow to review a reseller's total resource usage
  • Folder icon closed Folder open iconHow to connect WHM to WHMCS
  • Folder icon closed Folder open iconHow to access WebHost Manager
  • Folder icon closed Folder open iconHow to manage WHM packages and accounts
  • Folder icon closed Folder open iconUsing WebHost Manager for site branding and configuration
    • How to configure customer support requests in WHM
    • How to brand and customize customer accounts in WHM
  • Folder icon closed Folder open iconHow to back up and restore data with WebHost Manager
  • Folder icon closed Folder open iconHow to reset the MySQL root password in WebHost Manager (WHM)
  • Folder icon closed Folder open iconHow to suspend and unsuspend accounts in WHM

How to use a subdomain as an account's primary domain

Estimated reading: 3 minutes 174 views

Using a subdomain as the main domain for an account is explained in this article. For instance, some of your clients might not have bought a domain name yet. In this case, you can proceed to set up their account so they can begin building their website. Meanwhile, they use a subdomain belonging to another account to access their website. Contents Table of

  • Creating the account
  • Editing the DNS zone

Creating the account

The first step is to create the account that will use the subdomain. To do this, follow the same steps to create the account that you do for other accounts. The only difference is that when you specify the domain, make sure you include the subdomain. For example, if you want to use a subdomain named testing for the example.com domain, specify testing.example.com as the domain when you create the account.

For information about how to create an account in WebHost Manager, please see this article.

Editing the DNS zone

After you create the account, you must edit the DNS zone for the primary domain. Using the example above for the testing.example.com subdomain, the example.com domain’s DNS zone must be updated. Specifically, you must add an A record for the subdomain that points to the IP address of the new account.

To do this, follow these steps:

  1. Log in to WebHost Manager.If you do not know how to log in to your WebHost Manager account, please see this article.
  2. In the search box at the upper left of the WebHost Manager screen, start typing dns, and then click DNS Zone Manager when it becomes visible:WebHost Manager - DNS Zone Manager
  3. Select the primary domain, and then click Manage. The DNS zone information for the domain appears.
    If the primary domain is not visible in the list, start typing the domain name in the search box until it appears in the list.
  4. Click Add Record.
  5. In the Valid zone name text box, type the name of the subdomain. Leave the value 14400 in the second text box.
  6. In the Type list box, select A.
  7. In the IPv4 address text box, type the IP address of the account you created for the subdomain.
  8. Click Save Record. WebHost Manager updates the DNS zone.
  9. After DNS propagation completes, you can access the new account using the subdomain.

How to set up e-mail on Apple iOS

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

How to use a subdomain as an account's primary domain

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by Hostvento