Adding a DNS record in cPanel is an essential task when configuring domains and ensuring proper connectivity for services like websites, email, and other applications. DNS (Domain Name System) records help direct traffic to the correct server, making them critical for ensuring that your domain functions as expected. With cPanel, managing DNS records is simple and can be done via the Zone Editor tool.
Different types of DNS records can be added depending on your needs. The most common records include A records (which point your domain to an IP address), CNAME records (which point one domain to another), and MX records (which define the email server for the domain). Understanding which record type to add is important for setting up services correctly.
Before making changes to DNS, ensure that you have the correct information, such as the destination IP address or the target domain name. Incorrect DNS settings can lead to issues with website availability, email delivery, or other services relying on the domain.
The Zone Editor provides a simplified interface to manage DNS records. You can add, edit, or delete records from this section.
For A records, you will need the IP address of the server you want to point the domain to. For CNAME records, you will need the domain that you're redirecting traffic to.
Example //A// record: Name: example.com TTL: 14400 Type: A Record: 192.0.2.1
Changes to DNS records can take time to propagate. DNS propagation can take up to 48 hours, but usually occurs much faster.
Command to check DNS propagation: $ dig example.com A