Uncategorized

DNS Management in Cpanel

DNS management in cPanel allows you to control your domain’s DNS (Domain Name System) settings. These settings determine how your domain name is resolved on the internet, directing traffic to the correct server. Here’s a basic guide on how to manage DNS settings in cPanel:

DNS Zone Manager | cPanel & WHM Documentation

Accessing DNS Management in cPanel

1. Log in to cPanel:

Use your credentials to log in to your cPanel account.

2. Navigate to the DNS Zone Editor:

  • In the cPanel dashboard, locate the “Domains” section.
  • Click on “Zone Editor” (sometimes called “DNS Zone Editor” or “Simple DNS Zone Editor” depending on your cPanel version).

Common DNS Records to Manage

1. A Record (Address Record):

  • Maps a domain name to an IP address (IPv4).
  • Add/Edit:Click on “Manage” next to the domain, then find or create an A record and input the desired IP address.

2. CNAME Record (Canonical Name Record):

  • Points a domain name to another domain name (alias).
  • Add/Edit:In the Zone Editor, add or edit a CNAME record to point one domain or subdomain to another domain.

3. MX Record (Mail Exchange Record):

  • Directs email to a mail server.

  • Add/Edit: In the Zone Editor, add or edit MX records to specify the mail server responsible for receiving email for your domain.

4. TXT Record (Text Record):

  • Holds various text information, often used for SPF records, domain verification, or other services.
  • Add/Edit:In the Zone Editor, add a TXT record with the necessary information.

5. NS Record (Name Server Record):

  • Specifies the authoritative DNS servers for your domain.
  • Add/Edit:Typically managed by your domain registrar, but can be viewed in the Zone Editor.

6. SRV Record (Service Record):

  •  Specifies information about services available for your domain.
  • Add/Edit: If your service provider requires an SRV record, you can add it in the Zone Editor.

7. AAAA Record:

  • Similar to an A record but used for mapping a domain to an IPv6 address.
  • Add/Edit: Add an AAAA record if your domain will be accessible over IPv6.

Managing DNS records in cPanel involves accessing the DNS Zone Editor and adding, editing, or deleting DNS records as needed. Here’s a detailed guide on how to manage DNS records in cPanel:

Step-by-Step Guide to Managing DNS Records in cPanel

1. Log in to cPanel

  • Open your web browser and go to your cPanel login page, typically found at example.com/cpanel.
  • Enter your username and password to access the cPanel dashboard.

2. Access the DNS Zone Editor

  • In the cPanel dashboard, scroll down to the “Domains” section.
  • Click on “Zone Editor” or “DNS Zone Editor” (the name may vary depending on your cPanel version).

3. Select the Domain to Manage

  • If you have multiple domains, you’ll see a list of them. Choose the domain for which you want to manage DNS records by clicking “Manage” next to it.

4. Managing DNS Records

  • In the DNS Zone Editor, you’ll see a list of existing DNS records. You can add, edit, or delete records from here.

A. Adding a DNS Record

  1. Choose the Record Type:

    • Select the type of DNS record you want to add (A, CNAME, MX, TXT, etc.).
  2. Fill in the Details:
    • Name: Enter the domain or subdomain (e.g., www, mail, or example.com).
    • TTL: Set the TTL (Time to Live) value. This determines how long the record is cached by DNS servers.
    • Type: Choose the type of record (e.g., A, CNAME, MX).
    • Record/Data: Enter the IP address, target domain, or other required data depending on the record type.
  3. Save the Record:

    • Once all the fields are filled out, click “Save Record”.

B. Editing an Existing DNS Record

  1. Locate the Record:

    • Scroll through the list of existing records in the Zone Editor to find the one you need to edit.
  2. Click on “Edit”:

    • Next to the record, click the “Edit” button.
  3. Modify the Details:

    • Update the fields with the new information (e.g., change the IP address for an A record).
  4. Save the Changes:

    • Click “Save Record” to apply the changes.

C. Deleting a D.N.S Record

  1. Find the Record:

    • Locate the record in the list that you want to delete.
  2. Click on “Delete”:

    • Click the “Delete” button next to the record.
  3. Confirm Deletion:

    • Confirm that you want to delete the record by clicking “Delete” again if prompted.

5. Verify DNS Changes

  • After making changes to DNS records, you may need to wait for the changes to propagate, which can take a few minutes to 48 hours.
  • Use tools like dig, nslookup, or online DNS lookup services to verify that the changes have been applied correctly.

Example Scenarios for Managing DNS Records

  • Updating an A Record: If you move your website to a new server with a different IP address, you’ll need to update the A record to point to the new IP.
  • Adding an MX Record: To set up email for your domain with a new provider, add or edit the MX records to direct email traffic to the new mail server.
  • Creating a CNAME Record: If you want blog.example.com to point to a hosted service like WordPress or Medium, you can create a CNAME record that points to the service’s domain.
  • Setting Up SPF or DKIM: Add TXT records to set up SPF or DKIM, which are used to authenticate your domain’s emails and reduce spam.

Propagation Time

  • After making changes to D.N.S records, it may take some time (usually up to 24-48 hours) for the changes to propagate across the internet.
  • Back Up DNS Settings:** Before making significant changes, consider backing up your current DNS settings.
  • Use Correct TTL:Setting the TTL too low can increase load on your DNS servers, while setting it too high may delay the propagation of changes.
  • If your changes aren’t taking effect, double-check for typos or incorrect values in the DNS records.
  • Ensure you’re editing the correct domain’s D.N.S settings.
  • Use online tools like DNS lookup or dig to verify the DNS records after propagation.

 

Back To Top