What Is Reverse DNS (PTR Record) and How to Check It

Reverse DNS turns an IP address back into a hostname, using a PTR (pointer) record. To check it, run nslookup 209.85.220.41 8.8.8.8 (Windows, Mac and most Linux) or Resolve-DnsName 209.85.220.41 -Type PTR -Server 8.8.8.8 (PowerShell), then confirm the returned hostname points back to the same IP. Gmail, Outlook.com and many other receiving mail servers run this check on whoever sends to them, so a missing or mismatched PTR can push mail from a new VPS into spam or get it rejected.

Title card: what is reverse DNS, a PTR record maps an IP address back to a hostname that must point to the same IP

Key takeaways

  • A PTR record maps an IP to a hostname, under in-addr.arpa (IPv4) or ip6.arpa (IPv6), not in your domain’s zone.
  • Gmail requires “valid forward and reverse DNS records”: the PTR hostname must resolve back to the sending IP.
  • Only the IP’s owner (VPS or cloud provider, ISP), or whoever it hands the reverse zone to, can set its PTR. Shared-hosting users usually can’t.
  • Websites don’t need one: none of this site’s checked web IPs had a matching PTR, and it loads fine.
  • Use a public resolver such as 8.8.8.8: my router’s gave wrong answers.
Table of Contents
  1. 1What Is a PTR Record?
  2. Forward-confirmed reverse DNS (FCrDNS)
  3. 2Why Email Providers Care
  4. 3Real Results: Mail Servers and This Site
  5. 4How to Check Reverse DNS
  6. 1. Windows (PowerShell)
  7. 2. nslookup (Windows, Mac and most Linux; tested on Windows 11)
  8. 3. DNS over HTTPS with curl (any OS)
  9. 4. Find the IP that actually sends your mail
  10. 5How to Set or Fix a PTR Record
  11. 6Does Reverse DNS Matter for SEO or Website Speed?
  12. 7Mistakes to Avoid
  13. What is a PTR record in DNS?
  14. How do I check the reverse DNS of an IP address?
  15. Does my website need a PTR record?
  16. Why can’t I add a PTR record in my domain’s DNS settings?
  17. Can I set a PTR record on shared hosting?
  18. Is a PTR record required by Gmail?

What Is a PTR Record?

Forward DNS answers “what is the IP of mail.example.com?” with an A or AAAA record (see A record vs CNAME). Reverse DNS asks “what is the name of 209.85.220.41?” and the answer is a PTR record, which RFC 1035 says is “used in special domains to point to some other location in the domain space”.

That special domain is in-addr.arpa, with the IP written backwards: RFC 1035’s example is that data for 10.2.0.52 “is located at domain name 52.0.2.10.IN-ADDR.ARPA”. The reversal lets each block’s reverse zone be delegated to whoever holds those addresses. For IPv6, RFC 3596 uses ip6.arpa, with every hex digit written “in reverse order” and separated by dots.

Diagram of forward-confirmed reverse DNS: IP to PTR hostname via in-addr.arpa, then hostname back to the same IP via an A record

Forward-confirmed reverse DNS (FCrDNS)

A PTR on its own proves little, because the IP owner can type any name into it, so receivers check both directions. Google’s sender guidelines: “The public IP address of a sending SMTP server must have a corresponding PTR record that resolves to a hostname. This is called a reverse DNS lookup. The same hostname must also have an A (for IPv4) or AAAA (for IPv6) record that resolves to the same public IP address used by the sending server. This is called a forward DNS lookup.” This round trip is commonly called forward-confirmed reverse DNS (FCrDNS). RFC 1912 said it in 1996: “Make sure your PTR and A records match.”

Why Email Providers Care

Since February 1, 2024, Google requires all senders to Gmail to “Ensure that sending domains or IPs have valid forward and reverse DNS records, also referred to as PTR records.” Google also writes: “The sending IP address must match the IP address of the hostname specified in the Pointer (PTR) record.” Its IPv6 example error: 550-5.7.1: Message does not meet IPv6 sending guidelines regarding PTR records and authentication.

Microsoft’s Outlook.com Sender Support page: “We may not accept email from senders who fail a reverse-DNS lookup.” You still need SPF, DKIM and DMARC too (MX, SPF, DKIM and DMARC records).

Real Results: Mail Servers and This Site

On 26 November 2026 I ran PTR lookups from my Windows 11 PC, then checked whether each returned hostname pointed back to the same IP. Receiving servers come from MX records; for sending servers I picked sample addresses inside ranges listed in each provider’s SPF record (one Google range, one Microsoft range, three of Hostinger’s four IPv4 relay ranges).

RoleIP addressPTR hostnamePoints back?
Google sending (SPF 209.85.128.0/17)209.85.220.41mail-sor-f41.google.comYes
Microsoft sending (SPF 40.107.0.0/16)40.107.22.50mail-am6eur05on2050.outbound.protection.outlook.comYes
Hostinger relay (SPF 148.222.55.0/24)148.222.55.10de-fra-smtpin5.hostinger.ioYes
Hostinger relay (SPF 189.12.192.0/22)189.12.192.10oak9.relay.mail.hostinger.comYes
Hostinger relay (SPF 148.222.54.0/24)148.222.54.10None (NXDOMAIN)No PTR
Gmail MX (receiving), IPv4192.179.20.27ncboms-in-f27.1e100.netYes
Gmail MX (receiving), IPv62404:6800:4000:1027::1ancboms-in-f26.1e100.netYes (AAAA)
Outlook.com MX (receiving)52.101.137.3, 52.101.8.69None (NXDOMAIN)No PTR
mx1.hostinger.com (receiving)172.65.182.103None (NXDOMAIN)No PTR
harshilbarot.com website93.127.173.245, 91.108.106.204, 84.32.84.243None (NXDOMAIN)No PTR
harshilbarot.com website88.222.222.988-222-222-9.init.ltNo: that name doesn’t exist (NXDOMAIN)
Google Public DNS (reference)8.8.8.8dns.googleYes
nslookup, Resolve-DnsName and DNS-over-HTTPS (Cloudflare and Google), Windows 11 (India), 26 November 2026.
Real reverse DNS results on 26 November 2026: Google, Microsoft and Hostinger sending IPs match, Outlook and Hostinger MX and this site's web IPs have no matching PTR
Real readings from nslookup, Resolve-DnsName and DNS over HTTPS, 26 November 2026.
  • 4 of the 5 sending addresses I sampled pass the round trip. 148.222.54.10 had no PTR; DNS can’t tell me whether that address sends mail at all.
  • Receiving servers don’t need one. Gmail’s MX has matching PTRs; Outlook.com’s and Hostinger’s MX addresses had none. The check is on the server that connects to send.
  • Websites don’t need one. harshilbarot.com sits behind Hostinger’s CDN (Server: hcdn). Three of the four I checked had no PTR; the fourth had a generic name that doesn’t resolve. The site still returned HTTP/1.1 200 OK.
  • The IP owner runs the reverse zone. For 84.32.84.243 the NXDOMAIN answer named rdns1.hostinger.com as the zone’s primary server (Hostinger); for 172.65.182.103 it named cruz.ns.cloudflare.com (Cloudflare). For 93.127.173.245 it carried RIPE’s pri.authdns.ripe.net: no reverse zone was delegated for that block at all.

How to Check Reverse DNS

1. Windows (PowerShell)

Resolve-DnsName 209.85.220.41 -Type PTR -Server 8.8.8.8
Resolve-DnsName mail-sor-f41.google.com -Type A -Server 8.8.8.8

The first line shows the PTR hostname under NameHost; the second must return the IP you started with. For IPv6, use the IPv6 address and -Type AAAA. DNS name does not exist means no PTR.

2. nslookup (Windows, Mac and most Linux; tested on Windows 11)

nslookup 209.85.220.41 8.8.8.8
nslookup mail-sor-f41.google.com 8.8.8.8

Given an IP, nslookup does the PTR lookup. Non-existent domain means no PTR. Minimal Linux installs may need the dnsutils or bind-utils package, which also adds dig -x 209.85.220.41 +short (I didn’t run dig: this PC lacks it).

Warning: Use a public resolver such as 8.8.8.8 or 1.1.1.1 for this check. Without one, my home router’s resolver (gpon.net) printed 41.220.85.209.in-addr.arpa instead of mail-sor-f41.google.com in 2 of 3 repeats. Resolve-DnsName without -Server did the same for four sending IPs. Google’s public resolver was right every time.

3. DNS over HTTPS with curl (any OS)

curl -s "https://dns.google/resolve?name=41.220.85.209.in-addr.arpa&type=PTR"

Write the IP backwards and add .in-addr.arpa. In Windows PowerShell, type curl.exe, because plain curl there is an alias for Invoke-WebRequest. "Status":0 with a data value is the PTR hostname; "Status":3 is NXDOMAIN (no record).

4. Find the IP that actually sends your mail

Check the IP your mail server connects from, not your website’s IP: on a VPS, usually its public IP; with a mail provider, see a received message’s full headers or the provider’s SPF record.

How to Set or Fix a PTR Record

The PTR sits in the IP block’s reverse zone, so only the IP’s owner can change it; a “PTR” row in your domain’s zone does nothing. Hostinger’s VPS guide: “Unlike A records, which are created on the domain’s DNS Zone, PTR records should be created on the server.”

Where the IP comes fromHow to set the PTR
Hostinger VPSFirst point your domain to the VPS with an A record. Then: VPS → your server → Settings → IP address tab → Set PTR record, enter the name, Save. Hostinger notes it works “Once propagation is completed”.
AWS EC2AWS recommends an Elastic IP for sending mail. Create the A record first, then: EC2 console → Elastic IPs → Actions → Update reverse DNS. AWS warns that the Elastic IP is then “locked to your account” until you remove the record. In GovCloud (US), AWS Support sets it.
DigitalOcean DropletDigitalOcean creates the PTR from the Droplet name, which “must be a valid FQDN” (for example mail.example.com). Its docs say “You cannot manually create PTR records” in the Control Panel, so the Droplet’s name is what sets it.
Shared hostingUsually you can’t: the IP is shared and belongs to the host. Hostinger says PTR records need a dedicated IP, so on its plans you can only set them on a VPS. Send through the host’s mail servers instead: two of the three Hostinger relay addresses I checked had matching PTRs (the third had none, and DNS alone can’t show whether it sends mail).
Anything elseAsk the provider that owns the IP.
From Hostinger, AWS and DigitalOcean documentation, checked 26 November 2026.

Pick a hostname you control, such as mail.yourdomain.com. Create its A (and AAAA, if you send over IPv6) record first, then set the PTR to that exact name. RFC 1912 adds: “PTR records must point back to a valid A record, not a alias defined by a CNAME.” Google also asks for reverse DNS records “that point to your domain”. On a VPS, all of this is your job (managed vs unmanaged VPS).

Resolvers can keep serving the old answer until its TTL runs out. The PTR records I checked had TTLs from 1 hour to 6 hours on Google’s resolver and up to 86,400 seconds (24 hours) on Cloudflare’s, so if a check still shows the old name, wait up to a day and retest (see how DNS TTL works and DNS propagation).

Where to set a PTR record: Hostinger VPS settings, AWS Elastic IP update reverse DNS, DigitalOcean Droplet name, shared hosting usually cannot

Does Reverse DNS Matter for SEO or Website Speed?

I found no Google Search documentation saying a site’s own PTR record affects rankings, and browsers reach sites through A and AAAA records. This site’s checked IPs have no matching PTR, and it serves normally.

Reverse DNS does help on the search side in one way: checking who’s crawling you. Google’s crawler-verification page says to “Run a reverse DNS lookup on the accessing IP address from your logs”, check the name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup: the same round trip. Google’s example still worked when I ran it: 66.249.66.1 → crawl-66-249-66-1.googlebot.com → 66.249.66.1. A PTR lookup can also hint at who runs a server (find out who hosts a website).

Mistakes to Avoid

  • Adding a PTR record in your domain’s DNS zone. Reverse lookups never read it. Ask whoever owns the IP.
  • Setting a PTR to a name that doesn’t resolve. 88.222.222.9 has a PTR, but the name it points to returned NXDOMAIN, so the round trip fails.
  • Checking your website’s IP. Behind a CDN, it isn’t the server that sends your mail.
  • Forgetting IPv6. If your server sends over IPv6, that address needs its own PTR and AAAA record.
  • Treating PTR as the whole fix. SPF, DKIM, DMARC and reputation count too.
Reverse DNS checklist: find the sending IP, check PTR on a public resolver, confirm the A record matches, set it with the IP owner, repeat for IPv6

Checklist in text: find your sending IP; look up its PTR on a public resolver; confirm the hostname’s A or AAAA record returns the same IP; if not, have the IP owner set the PTR to a hostname you control that already has an A record; repeat for IPv6; retest after the TTL.

What is a PTR record in DNS?

A PTR (pointer) record maps an IP address to a hostname for reverse DNS lookups. It lives under in-addr.arpa (IPv4) or ip6.arpa (IPv6), in a zone run by whoever controls the IP.

How do I check the reverse DNS of an IP address?

Run nslookup 209.85.220.41 8.8.8.8, or in PowerShell Resolve-DnsName 209.85.220.41 -Type PTR -Server 8.8.8.8 (use your own IP). Then look up the returned hostname’s A record and check it gives the same IP.

Does my website need a PTR record?

No. Visitors use A and AAAA records; PTR matters for servers that send email.

Why can’t I add a PTR record in my domain’s DNS settings?

Reverse lookups read the IP block’s reverse zone, which the IP owner runs. Use your VPS or cloud panel, or ask the provider.

Can I set a PTR record on shared hosting?

Usually not, because the IP is shared and the host owns it. Hostinger says PTR records need a dedicated IP, so on its plans you can only set them on a VPS. Send mail through your host’s mail servers instead.

Is a PTR record required by Gmail?

Yes. Google requires all senders to have valid forward and reverse DNS records, and the sending IP must match the IP of the PTR hostname.

Harshil Barot
About the author
Digital Marketing Strategist & SEO Specialist

Harshil Barot is a digital marketing strategist focused on SEO, website growth and lead generation. He has built websites since 2012 and provided digital marketing services since 2016. His reviews of web hosting, WordPress, SEO and AI tools state whether they draw on personal use, hands-on testing or editorial research.

Share

Leave a Comment