Skip to main content
Guides/Network & IP

Reverse DNS: Understand and Use the Results

Find hostname from IP via PTR lookup

EdgeDNS Team·Updated ·7 min read

Reverse DNS: the backwards-lookup that mail servers care about

Reverse DNS (rDNS) is the answer to the question "what hostname is associated with this IP address?" — the opposite of regular DNS, which goes from a name to an address. The mechanism works through a special DNS record type called PTR ("pointer"), and the lookups happen in a special part of the DNS hierarchy called `in-addr.arpa` (for IPv4) or `ip6.arpa` (for IPv6). When you do a reverse lookup on `203.0.113.10`, your resolver actually queries `10.113.0.203.in-addr.arpa`, which is the IP address written backwards with `.in-addr.arpa` appended. The answer is a hostname, like `mail.example.com`. Forward DNS and reverse DNS are maintained completely separately and they are not always in agreement — which is itself a useful signal.

You should care because reverse DNS is one of the oldest spam-filter signals on the internet and is still used by every major mail server. When a mail server receives an incoming SMTP connection from an IP address, it does a reverse DNS lookup on that IP to find the hostname, then a forward DNS lookup on the hostname to make sure it points back to the same IP. If the two don't match — or if there is no PTR record at all — the connection is treated as suspicious and the mail is much more likely to be filtered as spam. This is the forward-confirmed reverse DNS (FCrDNS) check, and it has been the deliverability bedrock since the 1990s.

The five things every reverse DNS check looks at:

  • Is there a PTR record at all? Many residential ISPs do not assign meaningful PTRs, which is why home connections can't run mail servers reliably.

  • Does the PTR resolve to a hostname that looks legitimate? A PTR like `static-203-0-113-10.example.com` is fine; one that looks generic — `c-203-0-113-10.hsd1.ca.comcast.net`, `pool-203-0-113-10.dhcp.example.net` — is a residential-ISP fingerprint and counts as a weaker signal for mail.

  • Does the forward lookup of the hostname return the same IP? This is the FCrDNS check. Mismatches are treated as a strong negative.

  • Does the hostname match the HELO greeting in the SMTP session? Mail servers compare these and flag inconsistencies.

  • Is the PTR consistent with the SPF record's `ptr` mechanism, if present? The `ptr` mechanism in SPF is largely deprecated but still exists.

The combination of those signals collapses into a one-line deliverability verdict that most mail-ops engineers already carry in their head: PTR present, FCrDNS confirmed, hostname not generic → pass. Forward-confirmed but generic-looking → warn. PTR present but no forward-confirmation → warn. No PTR → fail. Surfacing that verdict as a single field is the difference between "here's some DNS data, you figure it out" and "your mail-sending IP is healthy."

Three questions a reverse DNS check answers:

  • Does my mail server's IP have a PTR record, and does it forward-confirm correctly?

  • For a suspicious incoming connection, what is the reverse DNS of the source IP?

  • After my recent server move, did the cloud provider set up a PTR for my new IP — or do I need to ask them to?

The cost of broken reverse DNS is silently degraded email deliverability that nobody notices until customers start complaining. The fix is to make sure your hosting provider has set the PTR record correctly for any IP that sends mail. This is the kind of operational detail that distinguishes a properly run email setup from a barely-working one.

The Reverse DNS endpoint, in plain language

Find hostname from IP (Internet Protocol address) via PTR (pointer (reverse DNS) record) lookup

Reverse DNS (Domain Name System) is critical for email deliverability since Google and Yahoo require Forward-Confirmed Reverse DNS (FCrDNS) as of February 2024. The bundled `email_deliverability.recommendation` field collapses the raw signals into a verdict every mail-ops engineer carries in their head, so a quick health check no longer requires custom client-side logic. It enables security analysts to resolve IPs in logs to meaningful hostnames, and penetration testers to discover infrastructure during reconnaissance. Missing or misconfigured PTR (pointer (reverse DNS) record) records are a leading cause of email delivery failures.

What is actually happening when you call it

Queries PTR (pointer (reverse DNS) record) records for the IP (Internet Protocol address) address by looking up the in-addr.arpa (IPv4 (Internet Protocol version 4)) or ip6.arpa (IPv6 (Internet Protocol version 6)) domain via Cloudflare DoH (DNS over HTTPS). Returns all associated hostnames, performs forward-confirmed reverse DNS (Domain Name System) (FCrDNS) validation by resolving up to 10 PTR hostnames back to verify they match the original IP (with `fcrdns_truncated` / `fcrdns_total` so callers know when more PTRs existed than were checked), classifies detected hostname patterns (mail servers, CDNs, residential ISP naming, cloud compute), and produces an `email_deliverability` rollup combining FCrDNS pass/fail, generic-hostname detection, and PTR presence into a single recommendation.

Why this specific tool matters

Choose a task: Email Deliverability Audit. Verify that all mail server IPs have proper PTR (pointer (reverse DNS) record) records matching the HELO/EHLO hostname, and that FCrDNS passes. Required by Google and Yahoo since February 2024.

Run the Reverse DNS request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Reverse DNS reference to check the field definitions and supported options.

Info:

Available on the free plan. The technical details: `GET /v1/ip/reverse`.

When would I actually use this?

Email Deliverability Audit

Verify that all mail server IPs have proper PTR (pointer (reverse DNS) record) records matching the HELO/EHLO hostname, and that FCrDNS passes. Required by Google and Yahoo since February 2024.

Use the finding: Prevent email delivery failures caused by missing or mismatched reverse DNS (Domain Name System) records.

Security Log Enrichment

Enrich firewall, IDS, and server access logs with hostnames to identify patterns like scanning from cloud providers or known botnet infrastructure.

Use the finding: Transform raw IP (Internet Protocol address) logs into actionable intelligence with meaningful hostname context.

Infrastructure Reconnaissance

Map IP (Internet Protocol address) ranges to hostnames during authorized penetration testing to discover additional subdomains, services, and shared hosting environments.

Use the finding: Expand attack surface understanding by uncovering hidden services and infrastructure relationships.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use ip_reverse with ip=8.8.8.8. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For Reverse DNS, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This Reverse DNS request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/ip/reverse?ip=8.8.8.8' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for Reverse DNS

Start with the inputs below. Keep the same hostname, path, and options when comparing Reverse DNS observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

ip

string

Yes

The IPv4 (Internet Protocol version 4) or IPv6 (Internet Protocol version 6) address to perform reverse DNS (Domain Name System) lookup on

8.8.8.8

Interpret Reverse DNS findings

Read these fields alongside the full response from your Reverse DNS check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

ip

string

The queried IP (Internet Protocol address) address

ip_version

number

IP (Internet Protocol address) version (4 or 6)

hostnames

array

All **PTR (pointer (reverse DNS) record) record** (Pointer record) hostnames found (trailing dots removed)

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

IP (Internet Protocol address) — A unique number that identifies a computer on the internet, like a phone number for a server.

PTR record (Pointer record) — A DNS entry that does the reverse of an A record: it takes an IP address and tells you the domain name attached to it.

DoH (DNS over HTTPS) — A modern way of sending DNS queries that hides them inside encrypted HTTPS traffic, so people on the same network can't see which websites you're looking up.

IPv4 (Internet Protocol version 4) — The original kind of internet address — four numbers separated by dots, like 203.0.113.10. The internet has run out of new ones, which is why IPv6 exists.

IPv6 (Internet Protocol version 6) — The newer, longer kind of internet address. Looks like 2001:0db8:85a3::8a2e:0370:7334. Designed because the world ran out of IPv4 addresses.

PTR (pointer (reverse DNS) record) — The reverse-DNS record that maps an IP back to a hostname. Residential-ISP PTRs (`.dyn.`, `.cable.`, `.broadband.`) on rotating IPs are a strong fast-flux signal — they indicate compromised consumer endpoints.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

Reverse DNS: Results Guide | EdgeDNS