Managing DNS (Domain Name System) records is essential for directing traffic to your website and managing email routing. cPanel allows you to add and modify various types of DNS records to ensure proper domain functionality.
Types of DNS Records You Can Manage:
-
A Record (Address Record): Points a domain to an IP address.
-
CNAME Record (Canonical Name Record): Alias of one domain to another.
-
MX Record (Mail Exchange Record): Directs email traffic to the correct mail server.
-
TXT Record: Used to store text-based information, such as SPF or DKIM records for email authentication.
-
NS Record (Name Server Record): Defines which name servers are authoritative for the domain.
Steps to Add or Edit DNS Records in cPanel:
-
Log in to cPanel.
-
Under the Domains section, click on Zone Editor.
-
Find the domain you want to manage and click Manage.
-
To add a new DNS record, click Add Record. To edit an existing record, click Edit next to the desired record.
-
Select the type of record you want to add (A, CNAME, MX, etc.), then fill in the required fields:
-
Name: The subdomain or domain for the record.
-
Type: The type of DNS record (e.g., A, MX, CNAME).
-
Address/Value: The IP address or value associated with the record.
-
-
Click Save Record to save your changes.
Common Use Cases for DNS Records:
-
Set Up Email Servers: Modify MX records to point to your email hosting provider.
-
Pointing Subdomains: Use A or CNAME records to direct subdomains (e.g., blog.yourdomain.com) to the appropriate IP address or another domain.
-
Domain Verification: Add TXT records to verify domain ownership for services like Google or Microsoft.
-
SSL Certificate Setup: Add DNS records required by your SSL certificate provider for validation.
Important Notes:
-
DNS changes may take some time to propagate (up to 24-48 hours).
-
Be cautious when editing DNS records, as incorrect configurations can cause your website or email services to become unavailable.