Key takeaways
- Check the forward and reverse direction together.
- Run dig -x on the IP, then dig A on the hostname it returns, then compare the HELO your system sends.
- A PTR that points to a name with no matching A record, or to a name that resolves elsewhere, is the most common fault.
Reverse DNS problems show up in three ways: a PTR lookup returns nothing, the PTR and forward records disagree, or the reverse name does not match what your sending system announces. Each has a different cause and a different fix. Match your symptom in the table, then run the checks in order, because a PTR change is only useful once forward and reverse agree.
Research checked: 12 November 2026
The short answer
Check the forward and reverse direction together. Run `dig -x` on the IP, then `dig A` on the hostname it returns, then compare the HELO your system sends. A PTR that points to a name with no matching A record, or to a name that resolves elsewhere, is the most common fault. Fix it at the record that is wrong, not by guessing.
Troubleshooting table
| Symptom | Likely cause | Check |
|---|---|---|
| `dig -x` returns nothing | No PTR is set, or the change is still pending | Check the IP's owner: your EC2 console or AWS for an SES dedicated IP. A PTR on a shared pool is not yours to set. |
| PTR returns a hostname, but forward lookup fails | No A record for that hostname, or the A record is on a different zone | `dig +short A <ptr-hostname>`. Create the A record first, then keep the PTR. |
| Forward lookup returns a different IP | The A record points to an old or retired server | Compare the A answer with the IP the mail leaves from, and update the A record. |
| PTR shows as pending after an update | AWS has not applied the change yet | The EC2 CLI returns `PtrRecordUpdate` with `Status: PENDING` until it applies. Check again later. |
| Cannot release an Elastic IP | Reverse DNS on the address locks it to your account | The AWS EC2 guide says the address is locked until the record is removed. Remove the PTR first, or contact AWS Support if Support set it. |
| Sending is restricted on an EC2 address | Account email sending restrictions on port 25 | The AWS EC2 guide links a request form to remove email sending restrictions. Use that route rather than changing ports. |
| PTR is correct but the HELO name differs | The sending system announces a default hostname | Set the HELO or EHLO name in your sending configuration to the same name as the PTR. |
| Results look worse after a PTR change | A change in sending pattern at the same time, not the PTR | Log the change date. Compare bounce and complaint rates over equal windows before and after. |
Verify each fix
Run these checks after each change:
- `dig +short -x 192.0.2.10` returns `mail.example.com.` with the trailing dot.
- `dig +short A mail.example.com` returns `192.0.2.10`, the same IP.
- Your sending configuration announces `mail.example.com` as the HELO or EHLO name. Check the sending log for the HELO line.
- Send one test message and check the headers for the sending IP and the hostname it announced.
If step 1 fails, the fault is the reverse record. If step 1 passes and step 2 fails, the fault is the forward record. If both pass and step 3 fails, the fault is your sending software.
Worked example
An EC2 team sets a PTR to `mail.example.com` and the lookup returns it. The mail still shows a weaker result than expected. The forward lookup for `mail.example.com` returns an old IP that was moved to another server. The reverse check passes, the forward check fails, and the sending IP does not match either. Updating the A record to the current Elastic IP makes both directions agree on the next check, and the HELO name is then set to `mail.example.com` to match.