Facebook tracking pixel

MailGenius

How to Reverse DNS Lookup: PTR Checks for Mail Servers

The popular advice is to run a reverse lookup, see a hostname, and move on. That's not enough for an email investigation. A readable result can still belong to the wrong server, and checking your website's address can send you toward a fix your sending infrastructure doesn't need.

If you're searching for how to reverse DNS lookup for a mail server, start with the public IP that sent the message. Then check what its PTR record says, verify the forward lookup, and decide who needs to make a change. Treat the result as infrastructure identity evidence, not a deliverability score.

What a Reverse DNS Lookup Actually Returns

A reverse lookup doesn't discover the definitive name of a business behind an address. It asks DNS for a published association. That distinction matters when a provider's generic hostname appears instead of the brand name you expected.

Reverse DNS, often shortened to rDNS, maps an IP address to a hostname through a Pointer record, or PTR record. In the example documented in RFC 3172's reverse-mapping explanation, 128.9.160.55 becomes 55.160.9.128.in-addr.arpa, and a PTR record at that name can return www.iab.org.

Follow the record rather than the brand

The reversal happens one octet at a time. DNS queries the reversed name beneath the special reverse namespace, rather than searching every website that might use the address. The authoritative server for that reverse zone supplies the answer when a record exists.

A normal A record works in the opposite direction. You ask for a hostname and receive an IPv4 address. A PTR record is a separate publication, so the existence of an A record doesn't mean someone has configured the corresponding reverse mapping.

The diagram illustrates those opposite directions.

A person looking at a laptop screen displaying an educational diagram explaining reverse DNS lookup process.

Practical rule: Read a PTR answer as a DNS-published hostname, not a certificate of ownership or trust.

Understand what an answer leaves unresolved

The IP holder or its provider must publish the reverse record. Some addresses have no PTR record. Others return a generic provider name rather than a hostname chosen for the application running there.

That gives you several possible observations, not an immediate verdict:

  • A deliberate hostname: Investigate whether it identifies the intended server.
  • A generic provider name: Check the configuration before deciding that branding alone makes it wrong.
  • No returned hostname: Confirm whether the record is absent or the query itself failed.

Keep security questions separate, too. Purple Access's resource on where DNS protection fits your network is useful context when discussing DNS protection alongside naming checks. For this investigation, keep the question narrow: what hostname has the reverse-zone operator published for this address?

Running Your First Reverse DNS Lookup

Start with a test email sent through the same service and sending route as the messages you're investigating. Inspect its message headers for the public address used in the SMTP handoff to the receiving system. Don't substitute the address of your website or the domain you use to sign in to your email platform.

If the headers contain several hops and you're unsure which address represents that handoff, ask your email provider to identify it. Save the test message with your notes. You'll need to connect each DNS result to the actual sending route.

Run a readable PTR query

For an IPv4 example, 192.0.2.25 becomes 25.2.0.192.in-addr.arpa. The command dig -x 192.0.2.25 +noall +answer asks for its PTR record while keeping the displayed answer compact, using the reverse-record structure defined in RFC 1035.

Replace the example address with the public sending IP you identified. Treat the example as an illustration, not a live server you should expect to resolve.

If dig isn't available, use nslookup 192.0.2.25. For a browser-based check, enter the sending IP into an online reverse DNS lookup tool. That's convenient when you don't have terminal access, but check whether the tool shows the resolver and query details before relying on its summary.

Choosing a Reverse DNS Lookup Method

Method Best for Watch out for
dig Reading the PTR answer and inspecting diagnostic details Compact output can hide the information needed to explain an empty answer
nslookup Making a straightforward terminal lookup Identify the queried resolver separately from the returned hostname
Online reverse lookup tool Running a quick check without terminal access A simplified result may omit resolver details or query errors

Separate an empty answer from a failed query

A blank compact result isn't enough to diagnose a missing PTR. Run the query again without the output-suppression flags so you can inspect the response status and any resolver errors.

Use this distinction when recording your findings:

  • An answered query without a PTR: Investigate a missing reverse record.
  • A timeout or resolver failure: Investigate the lookup path before declaring the record absent.
  • A returned hostname: Save the exact value for the forward check.

IPv6 needs attention as well. Its reverse namespace is ip6.arpa, and the address is reversed by individual hexadecimal digits, or nibbles, rather than IPv4 octets. The reverse-DNS namespace reference describes those mechanics and the authoritative zone structure.

Let the lookup tool handle that conversion. The operational priority is choosing the correct address family. If the actual message left over IPv6, checking only an IPv4 address won't answer the question you're investigating.

Reading the Result for Mail Server Checks

Suppose your reverse query returns a hostname that looks appropriate for the mail server. Don't stop at the name. The useful question is whether the forward DNS result closes the loop.

Forward-confirmed reverse DNS, or FCrDNS, requires a chain: the sending public IP has a PTR record, the returned hostname identifies the intended mail host, and that hostname's A or AAAA record includes the original sending address. Google's email sender guidelines require this forward-and-reverse match for sending IPs.

The verification path looks like this.

A diagram explaining mail server checks involving sending IP, reverse DNS, and forward-confirmed reverse DNS verification.

Compare the actual answers

Take the exact hostname returned by the PTR query. Query its A record for an IPv4 sending address, or its AAAA record for an IPv6 sending address.

For the example hostname mail.example.com, use dig mail.example.com A +noall +answer or dig mail.example.com AAAA +noall +answer, as appropriate. Don't replace the returned hostname with your website domain because that name is more familiar.

Record the reverse and forward results side by side:

Observation Interpretation Working verdict
PTR identifies the intended host, and its forward answer includes the sending IP The tested address completes the identity chain Pass for this check
PTR exists, but its hostname has no matching forward address The chain breaks at forward DNS Fail
No PTR exists after a successful lookup The reverse link is missing Fail
Queries fail or resolvers disagree You don't yet have a dependable result Inconclusive

In a matching example, the hostname's forward response includes the address you started with. In a mismatched example, the hostname resolves only to a different address. A hostname that looks correct doesn't rescue that mismatch.

Investigate disagreement before changing records

Repeat the check through another recursive resolver. If the answers differ, inspect the authoritative nameservers for the relevant forward and reverse zones. Retest after the applicable time to live, or TTL, has allowed cached answers to expire.

Google lists missing PTR records and forward records that don't reference the sending IP among conditions that can lead to SMTP failures or spam placement. Its guidance includes error 5.7.25, so this is worth resolving rather than treating it as cosmetic.

A pass applies to the address you tested. It doesn't clear every server used by the same campaign.

Keep an inventory when your provider uses several sending addresses. Repeat the check for each production address instead of generalizing from a successful sample.

For a small team, separate mailbox configuration work from sending-server diagnosis. MD TECH TEAM's resource on email setup for small business teams can sit alongside this investigation, but a working mailbox connection isn't your evidence that outbound reverse DNS is correct.

Fixing a Broken PTR Record

The repair usually belongs to the organization controlling the IP address, not the company where you registered your domain. That might be your ISP, hosting company, cloud provider, or email infrastructure operator.

Cisco's reverse-DNS configuration documentation describes this division of control and the expected forward match. In its example pattern, a reverse name returning mail.example.com should have that hostname resolve back to 192.0.2.25.

A provider investigation may require coordination between the person managing the server and the person managing DNS.

A technician holds a tablet with a video call while working in a server room.

Send the fix to the right owner

Adding a record in your ordinary domain zone won't repair a PTR controlled elsewhere. Identify the reverse-zone operator first, then coordinate the forward record with whoever manages the returned hostname.

Use the observed failure to assign the work:

  • Missing PTR: Ask the IP provider to publish the intended hostname in the reverse zone.
  • Multiple PTR values: Ask the provider to review them and agree on a clear mail-host identity rather than keeping unexplained alternatives.
  • Stale provider default: Confirm the intended hostname, prepare its forward record, and request the corresponding PTR update.
  • Private or unroutable address: Return to the message evidence and identify the public address used for the external SMTP connection.
  • Forward mismatch: Ask the forward-DNS administrator and IP provider to agree on the correct pairing before either side changes records.

Avoid changing both sides independently. A provider can correctly publish the hostname you requested while your forward-DNS administrator points that hostname somewhere else.

Align the SMTP name deliberately

Check the name the server announces in EHLO or HELO against the intended PTR hostname. Use a consistent mail-host name where possible, and resolve mismatched PTR records and SMTP banners when those identities have drifted apart.

There's an important limit to this advice. The SMTP guidance discussed in this explanation of reverse DNS and email filtering notes that RFC 5321 recommends a primary hostname when possible, while a mismatch with the connecting IP must not be the sole reason to refuse a connection. That doesn't erase a receiving provider's published requirements.

Use the walkthrough below alongside your recorded query results.

Send your provider a request containing the public sending address, current PTR result, intended hostname, and matching forward-DNS evidence. Ask who will publish the change and when you should retest.

After publication and cache expiry, repeat the same checks. Keep the before-and-after results with the ticket so everyone can distinguish a completed repair from a change that hasn't become visible yet.

What a Clean PTR Still Cannot Prove

A clean PTR is not proof that recipients should trust your email. It tells you something specific about the infrastructure's naming configuration, not whether the campaign deserves inbox placement.

A PTR lookup doesn't prove SPF, DKIM, DMARC alignment, sender reputation, mailbox acceptance, or inbox placement. Palisade's reverse-DNS troubleshooting guide also highlights a common mistake: marketers check the website's IP instead of the SMTP sending IP.

Keep the evidence tied to the question

Consider a team that has a successful reverse result but still receives an authentication warning. Repeating the PTR query won't establish whether the message's authentication is correct. The next investigation needs different evidence.

Use the failing observation to choose the next task:

  • Reverse-DNS defect: Investigate the address and hostname pairing with the infrastructure owner.
  • Authentication failure: Examine the message's authentication results and the relevant sending configuration.
  • Clean infrastructure checks but poor placement: Review reputation and delivery evidence rather than assuming another PTR change will help.
  • Unexpected sending address: Confirm the campaign's actual sending route before changing DNS.

An SPF and DKIM checker is appropriate when you need to investigate those authentication results. Don't interpret a reverse-DNS pass as a substitute for that work.

Keep each conclusion as narrow as the evidence. A successful naming check clears a naming question, not the whole campaign.

Don't repair something that already matches

Unnecessary changes make troubleshooting harder. If the tested address completes the identity chain and identifies the intended host, preserve that result while investigating the remaining symptoms.

That's especially important when an agency, email platform, and client all share responsibility. A vague instruction to fix DNS can send several people into unrelated dashboards. A useful handoff names the failing check, includes the observed result, and identifies the likely owner.

For example, separate a provider ticket about a missing reverse record from an authentication review of a test message. Don't combine both under a claim that the domain is broken.

The practical advantage is focus. Once reverse DNS is confirmed, stop treating it as the explanation for every delivery problem. Keep the evidence, leave the working configuration alone, and investigate the signal that still fails.

Checking Your Setup with a Free Spam Test

Manual lookups are useful when you need to inspect a specific DNS answer. A message-based test serves a different purpose: it lets you examine that answer alongside other findings from an email sent through your real workflow.

You can use the free email spam test as that broader check. Send a message to the address displayed on screen from the ESP or CRM you use, rather than forwarding an unrelated message from a personal mailbox.

The testing interface provides a place to begin that message-based review.

Screenshot from https://mailgenius.com

Use the score to prioritize an investigation

The test simulates how providers such as Gmail, Outlook, and Yahoo may treat a message, returning a score and prioritized fixes. Treat that simulation as diagnostic guidance, not a promise of acceptance or inbox placement for every recipient.

Its toolkit includes a reverse-DNS audit alongside SPF, DKIM, and DMARC checks. It also scans the domain, sending IP, and message links for blacklist findings and reviews other message-level issues.

Use those findings to choose a concrete next action:

Finding to investigate Next action
Reverse-DNS warning Confirm the raw lookup and prepare a provider ticket
Forward-record mismatch Coordinate the hostname correction with its DNS administrator
Authentication warning Review the message results and sending configuration
Reputation or blacklist finding Investigate the specific finding rather than rewriting a working PTR
Unclear or conflicting results Preserve the message and query evidence for expert review

The workflow is platform-agnostic. The useful requirement is that you send through the same ESP or CRM route you want to assess. Otherwise, you may diagnose a clean test setup while leaving the production path unchecked.

Retest the change you actually made

Save the initial report before editing anything. After the responsible administrator makes the correction and DNS caches have had time to expire, send another test through the same route.

Compare the relevant finding, not just the overall score. If you corrected reverse DNS, confirm that the reverse-DNS warning changed and validate the underlying records manually when necessary.

That gives your team a defensible stopping point. A provider ticket is appropriate when the reverse zone needs repair. A forward-DNS change belongs with its administrator. A deeper review makes sense when the infrastructure checks are clean but the delivery evidence still points to a problem.


MailGenius offers a free spam test that puts reverse DNS beside authentication, blacklist, and message checks. Visit MailGenius, send a test through your actual sending platform, and use the findings to decide whether you need a provider ticket, a DNS correction, or expert help.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today