Reverse DNS lookup
Check the name behind an IP address, and whether it points back to the same address.
Names for addresses, the other way round
A PTR record maps an IP address back to a name, and only whoever was allocated the address block can publish it, not your own domain's DNS.
Read moreShow less: Names for addresses, the other way round
Ordinary DNS turns a name into an address: mail.example.com gives 192.0.2.25. Reverse DNS goes from the address back to a name, using a PTR record. The record lives in a special zone built from the address written backwards, so the PTR for 192.0.2.25 is stored at:
25.2.0.192.in-addr.arpa. PTR mail.example.com.
The important difference is who controls that zone. Your domain's DNS can't hold it. Reverse zones belong to whoever was allocated the IP address block: your hosting company, cloud provider or internet service provider. That is why "add a PTR record" so often ends in a support ticket rather than a DNS edit.
Why mail servers care
Gmail and Yahoo ask every sender for valid forward and reverse DNS, which is yours to sort out only if you run your own mail server or send from your own IP address.
Read moreShow less: Why mail servers care
When a server connects to deliver mail, the receiver sees only its IP address. Looking up the PTR, then looking up that name to see whether it leads back to the same address, is a cheap test of whether the sender is a properly run mail server or a hijacked home computer. That two-way test is called forward-confirmed reverse DNS (FCrDNS).
Gmail's sender guidelines require valid forward and reverse DNS for every sender, and Yahoo's best-practice page asks for the same. Without it, Gmail and Yahoo may reject the mail or put it in spam. You only need to think about this if you run your own mail server or send from your own IP address. When you send through Google Workspace, Microsoft 365 or a newsletter service, their servers connect from their addresses, and they look after the reverse DNS.
Reading the result
Each address tested, up to four for a hostname, gets a Pass, Warning, Fail or Note: forward-confirmed, not pointing back, no PTR, or a generic or home-connection name.
Read moreShow less: Reading the result
You can type an IP address or a mail server's hostname. With a hostname, we look up its IPv4 and IPv6 addresses first and test each one, up to four.
The finding for each address is one of these:
- "203.0.113.5 → mail.example.com (forward-confirmed)", Pass: the PTR exists and that name resolves back to the same address.
- "… → name, but that name doesn't point back", Warning: a PTR exists, but its name has no A (or AAAA) record with this address, so receivers won't trust it.
- "… has no reverse DNS (PTR)", Fail: nothing is published for the address.
- "… looks like a generic or home-connection name", Note: the name contains the IP address or words such as dynamic, pool or dsl, which spam filters treat as residential.
Technical details is a three-column table: IP, PTR name (or "none") and Points back, yes or no.
Four addresses checked on 21 October 2026
On 21 October 2026, 8.8.8.8, 1.1.1.1, 9.9.9.9 and mail.openbsd.org all came back forward-confirmed.
Read moreShow less: Four addresses checked on 21 October 2026
Each came back forward-confirmed:
8.8.8.8 → dns.google
1.1.1.1 → one.one.one.one
9.9.9.9 → dns9.quad9.net
199.185.178.25 → mail.openbsd.org
The last one came from typing the hostname mail.openbsd.org: we resolved it to 199.185.178.25, found the PTR, and confirmed that the PTR name leads back to the same address. That is the complete loop a receiving server checks, and it is what a well-run mail server's own name should look like.
Setting up reverse DNS
Give your server's hostname an A record, ask the IP owner to publish one PTR naming it, then check here for a forward-confirmed result.
Read moreShow less: Setting up reverse DNS
- Pick the name. Use the hostname your server announces when it connects, for example mail.example.com, and make sure that name has an A record (and an AAAA record for an IPv6 address) pointing to the server.
- Ask the owner of the IP to publish the PTR. Cloud providers usually have a reverse DNS setting on the server or the IP address; hosting companies and ISPs do it through support. Give them the address and the exact name.
- Use one PTR per address. A single name is what receivers expect to find; several PTR records for one address make the result unpredictable.
- Check here. Once the provider has made the change, the result should read "forward-confirmed".
Illustrative examples of the two common failures, using documentation addresses:
203.0.113.5 → (none) no PTR: ask the IP owner to add one
203.0.113.5 → 5-113-0-203.static.isp.example.net generic name, and no A record leads back
The fix in both cases is the same PTR record, set by the IP owner, pointing to your mail server's real hostname.
Reverse DNS questions
Short answers on adding a PTR record, matching the HELO name, Gmail PTR errors, several PTRs for one address and the full-circle check.
How do I add a PTR record for my mail server?
Not in your domain's DNS: ask whoever controls the IP address. In a cloud console it's usually a reverse DNS field on the server or IP; with a hosting company or ISP it's a support request. Give them the address and the full hostname.
Does the PTR name have to match the HELO hostname?
Gmail and Yahoo ask for a PTR whose name resolves back to the same address. Using that same name as the hostname your server announces in HELO or EHLO is good practice, and some spam filters compare the two.
Why does Gmail reject my mail with a PTR error?
Gmail checks that the connecting IP address has valid reverse DNS and turns mail away, or files it as spam, when it doesn't. The fix is the PTR record plus a matching A record, set up as described above.
Can one IP address have several PTR records?
DNS allows it, but receivers expect one, and several make the result depend on which comes back first. Publish a single PTR naming the mail server.
What is a full-circle reverse DNS check?
It's the two-way test this tool runs: from IP to name through the PTR record, then from that name back to an IP through an A or AAAA record. When both directions agree, the name counts as forward-confirmed.
More checks for a self-hosted mail server
Reverse DNS is one of several things receivers test; the health check covers the rest of a domain's mail records in one go.
Guide: MX, PTR and reverse DNS.