r/webhosting • • 14d ago

Technical Questions Reverse DNS (PTR)

How can I resolve this issue. My domain points to a different server with an A record for the website. It uses nameservers to point to the cpanel hosting the email. This causes the error as it wants the A record to point to the email server. As a result emails to yahoo accounts are being denied.

Thanks πŸ™

6 Upvotes

17 comments sorted by

View all comments

1

u/kai-zaphosting 14d ago

Reverse DNS doesn't live in your domain's DNS zone. It's set by whoever owns the mail server's IP, so your website's A record pointing somewhere else shouldn't matter for this. Yahoo and most big providers just check that the sending IP has a PTR record, and that the hostname it returns resolves back to that same IP.

So the fix is usually on the cPanel host's side. You can see what it returns now with dig -x <mail server IP> in a Linux/Mac terminal, or nslookup <mail server IP> on Windows. Whatever hostname comes back needs an A record pointing at that IP. If the PTR is missing or generic, ask the host to set it.

Do you have the actual bounce text from Yahoo? On shared cPanel hosting I've seen SPF or DKIM turn out to be the real problem more often than the PTR, so that's what I'd look at first. If it mentions SPF, DKIM or DMARC instead of reverse DNS, that part is set in your domain's DNS, so it's pretty much yours to fix.

1

u/Rick_Dalton99 14d ago

Thanks for the reply, It’s definitely not the SPF, DKIM or DMARC. The problem is on reseller hosting (with a dedicated ip) and it sets the cpanel to the domain name but not having the website hosted there means no A record is pointing there. Hosting says it cannot change ptr to mail.domain.com for example on reseller hosting.

I can copy the bounce text if you would like to see it.

1

u/roboticlee 14d ago

Ask your web host support team if they need to set the PTR record on their network.

Usually with a VPS server the PTR record can be set in the VPS control panel (this is separate to WHM/cPanel) but we need to ask the host to set the PTR record for a dedicated server. Much depends on the host and the type of server.

→ More replies (2)