It is crucial to comprehend and configure DNS records, particularly A records and PTR records, if you are in charge of your own server or hosting account. In addition to ensuring efficient email delivery and website access, these records assist in directing your domain to the appropriate server.
This blog post will describe A and PTR records, their significance, and the proper way to add them to Web Host Manager (WHM).
An IPv4 address is mapped to a domain name by an A Record (Address Record).
This enables users to access your website by using a domain name, such as example.com, rather than an IP address.
Example:
example.com → 192.168.1.1
Purpose:
Using a human-readable domain makes your website accessible and links your domain to your hosting server.
________________________________________
The opposite of an A record is a PTR record, or pointer record.
It is mostly used for reverse DNS lookups, mapping an IP address to a domain name.
Example
192.168.1.1 → example.com
Purpose:
• Confirms the identify of your server.
• Assists in keeping your emails from getting flagged as spam.
________________________________________
Follow these simple steps to add an A record:
âś… Done! Your domain now points to your server IP.
PTR records are usually controlled by your hosting provider or data center, not from WHM.
However, if you manage your own IPs, you can request or configure it manually.
Option 1: Request from Hosting Provider
Example Request:
“Please set the PTR record for IP 192.168.1.1 to mail.example.com.”
Option 2: Manage from WHM (if allowed)
đź§© Verify Your DNS Setup
After creating the records, verify them using these tools:
You can also use:
dig A example.com
dig -x 192.168.1.1
Record Type | Function | Importance |
A Record | Domain → IP |  Makes your website reachable |
PTR Record | IP → Domain | Improves email trust and server reputation |
Without these records properly set up:
đź’ˇ Final Tips
✍️ Conclusion
Adding A records and PTR records is crucial for ensuring that your website and email services function smoothly.
While A records direct users to your site, PTR records help verify your server’s authenticity — especially important for email deliverability.
Read related: Understanding DNS, A Records, and PTR Records : How to Add A Records and PTR Records in WHM