
Domain Name and DNS Management in cPanel
Domain Name and DNS Management in cPanel: Step-by-Step Guide for Beginners
Managing a website involves more than just uploading files and setting up emails. Two of the most critical aspects of managing any site are domain name configuration and DNS management. These are crucial because they determine how users access your site and how your website interacts with the internet. For beginners, understanding how to manage domain names and DNS settings in cPanel can be daunting. However, with Ensure Web Hosting, this process becomes simple and intuitive.
In this guide, we’ll walk you through the basics of domain name and DNS management, covering everything from adding domains to configuring DNS settings. Along the way, we’ll include demonstrations and practical tips to ensure you can easily follow the steps.
What is a Domain Name?
A domain name is your website’s address on the internet (e.g., www.yourwebsite.com). It’s how users find your site without having to remember the IP address of your hosting server. Domain names consist of two parts:
- Top-Level Domain (TLD): This is the extension like
.com,.net,.org, or country-specific codes like.ng. - Second-Level Domain (SLD): This is the part before the TLD, which identifies your website or brand (e.g.,
yourwebsiteinwww.yourwebsite.com).
What is DNS?
The Domain Name System (DNS) acts like the phonebook of the internet. It translates domain names into IP addresses. When someone types your domain into a browser, DNS resolves the domain to the IP address of your server, allowing users to access your website.
Without DNS, you would need to remember complicated numerical addresses like 192.168.1.1 to visit websites. DNS eliminates this problem by linking domain names with IP addresses.
Step-by-Step Access to Domain Name and DNS Management in cPanel
In cPanel, managing domain names and DNS settings is a straightforward process. Let’s walk through the essential tasks you’ll need to perform as a beginner, including adding domains, creating subdomains, and managing DNS records.
1. Log in to cPanel
To start managing your domains and DNS settings, you first need to log into your cPanel account. Here’s how:
- Navigate to cPanel: Go to
https://yourdomain.com/cpanel(or use the link provided by Ensure Web Hosting). - Enter Your Credentials: Use the username and password provided by your hosting provider. If you’re unsure of these, check the confirmation email you received after purchasing hosting.
Managing Domains in cPanel
2. Add-on Domains: Hosting Multiple Websites
If you have multiple domain names and want to host more than one website on your hosting account, you’ll need to use Add-on Domains. Add-on domains allow you to manage multiple websites within a single hosting account.
Steps to Add an Add-on Domain:
- Locate the “Domains” Section: Once logged into cPanel, scroll down and find the “Domains” section.
- Click on “Add-on Domains”: This option allows you to add additional domains to your hosting account.
- Enter the New Domain Name: Type the domain name you want to add (e.g.,
newdomain.com). - Set Up a Directory for the Domain: cPanel will automatically create a folder for the new domain under
public_html. You can change this if you prefer a custom directory. - Create an FTP Account (Optional): You can create a separate FTP account for this add-on domain, allowing you to manage files separately from the main domain.
- Click “Add Domain”: Your new domain is now ready to use! You can upload files or install a CMS like WordPress for the add-on domain.
3. Subdomains: Creating Subsections of Your Website
A subdomain allows you to create a separate section of your website under your main domain. For example, you could create a blog at blog.yourdomain.com or a store at shop.yourdomain.com.
Steps to Create a Subdomain:
- Navigate to the Subdomain Tool: In the “Domains” section of cPanel, click on Subdomains.
- Enter the Subdomain Name: Type the prefix for your subdomain (e.g.,
blogforblog.yourdomain.com). - Choose the Parent Domain: From the dropdown, select the domain you want to attach the subdomain to.
- Set the Document Root: cPanel will automatically create a directory for your subdomain under
public_html. If needed, you can specify a different directory. - Click “Create”: Your subdomain is now live, and you can start uploading files to the subdomain’s folder or install separate applications.
DNS Management in cPanel
Managing DNS records is an essential task, especially when you need to point your domain to different servers or services. cPanel’s Zone Editor provides a simple way to add, remove, or modify DNS records.
4. Understanding DNS Records
There are several types of DNS records, and each serves a specific purpose:
- A Record (Address Record): Maps a domain name to an IP address (e.g.,
yourdomain.com→123.123.123.123). - CNAME Record (Canonical Name Record): Aliases one domain name to another (e.g.,
www.yourdomain.com→yourdomain.com). - MX Record (Mail Exchange Record): Directs email to the correct server for your domain.
- TXT Record: Often used for verification purposes, like adding SPF records for email authentication.
- NS Record (Name Server Record): Specifies which name servers are authoritative for your domain.
5. Using the Zone Editor in cPanel
Steps to Access the Zone Editor:
- Locate the Zone Editor: In the “Domains” section of cPanel, click on Zone Editor. This tool allows you to add and modify DNS records.
- Choose the Domain to Manage: Select the domain you want to configure by clicking on “Manage.”
- Add or Edit DNS Records:
- Adding an A Record:
- Click on “Add Record”.
- Select “A” from the record types.
- Enter the name (e.g.,
yourdomain.com) and the IP address where your site is hosted (e.g.,123.123.123.123). - Click “Add Record” to save the changes.
- Adding a CNAME Record:
- Select “CNAME” from the record types.
- Enter the subdomain (e.g.,
www) and the domain name it should point to (e.g.,yourdomain.com). - Click “Add Record” to save.
- Editing MX Records for Email:
- If you want to point your domain’s email to a different server (such as Google Workspace), click on “Add Record” and select “MX”.
- Enter the priority and destination (e.g.,
mail.yourdomain.com). - Click “Add Record”.
6. Changing Name Servers
If you’re pointing your domain to a different web hosting provider or service, you’ll need to change the Name Servers (NS) for your domain. Name servers are responsible for translating your domain into the correct DNS settings.
Steps to Change Name Servers:
- Go to the Domains Section: From the cPanel dashboard, click on Domains.
- Select the Domain to Edit: Choose the domain whose name servers you want to change.
- Change Name Server Information: In the Name Servers field, replace the default entries with the new name servers (e.g.,
ns1.newhost.comandns2.newhost.com). - Save Changes: Once updated, DNS propagation can take anywhere from a few minutes to 48 hours to fully propagate worldwide.
Managing DNS Zones and Records: Practical Examples
Example 1: Pointing Your Domain to a New Web Host
Let’s say you’ve moved your website to a new host, and you need to point your domain name to the new server. You would do this by updating the A Record in your DNS settings.
- Access the Zone Editor.
- Select the Domain.
- Modify the A Record: Replace the old IP address with the new one provided by your new web host.
- Save Changes: Your domain will now direct users to the new host once the DNS propagation is complete.
Example 2: Setting Up Email for Your Domain
If you’re using a third-party email service (e.g., Google Workspace or Microsoft 365), you’ll need to configure the MX Records.
- Go to the Zone Editor.
- Select the Domain.
- Add a New MX Record: Enter the mail server address (e.g.,
aspmx.l.google.comfor Google Workspace) and set the priority. - Save Changes: Your emails will now be directed to the third-party email provider.
Conclusion
Domain name and DNS management are critical components of website administration, and cPanel makes it easy for beginners to navigate these tasks. Whether you’re setting up a new domain, adding subdomains, or configuring DNS records, this guide provides a comprehensive walkthrough to get you started.
By using cPanel through Ensure Web Hosting, you gain access to powerful tools and an intuitive interface that simplifies domain and DNS management. Take the time to familiarize yourself with these processes, and you’ll have full control over your website’s online presence.
Follow Us
Stay connected with us on social media to receive updates on our latest posts.
Follow us on: Facebook | Instagram
