Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

Reverse DNS lookup: how PTR records map IPs to names

A reverse DNS lookup finds the hostname for an IP address by querying a PTR record in the in-addr.arpa zone (IPv4) or ip6.arpa zone (IPv6). The octets of the address are written backwards, so 8.8.8.8 is looked up as 8.8.8.8.in-addr.arpa.

The short answer
  • PTR records live in a special reverse zone and hold a hostname, not an address.
  • The owner of the IP block, usually your host or ISP, controls the PTR record for it.
  • Forward and reverse should agree: the name from the PTR should resolve back to the same IP.
Try the dns lookupFree, live, no signup

How is an IP turned into a reverse name?

Reverse lookup names
IP addressReverse name queriedRule
10.2.0.5252.0.2.10.in-addr.arpaIPv4 octets reversed (RFC 1035, 3.5)
8.8.8.88.8.8.8.in-addr.arpaSame octets, reversed order is identical
2001:db8::11.0.0.0. ... 8.b.d.0.1.0.0.2.ip6.arpaEach hex digit (nibble) reversed (RFC 3596)

How do you run a reverse lookup?

Commands; the nslookup result was observed 2026-11-21
$ nslookup 8.8.8.8
Server:  dns.google
Address:  8.8.8.8
Name:    dns.google
Address:  8.8.8.8

$ dig -x 8.8.8.8 +short      # macOS / Linux
$ dig -x 2001:4860:4860::8888 +short

How do you set a PTR record?

  1. 01

    Find who owns the IP block

    Reverse zones are delegated to the organization that holds the addresses: normally your hosting provider, cloud provider or ISP, not your domain DNS host.

  2. 02

    Use the provider panel or ticket

    Most hosts offer a "reverse DNS" or "PTR" field per IP address. Enter the hostname you want, such as mail.example.com.

  3. 03

    Create the matching forward record

    Add an A (or AAAA) record so that mail.example.com resolves to the same IP.

  4. 04

    Verify both directions

    Run nslookup 192.0.2.25 and nslookup mail.example.com; the results should match.

When does reverse DNS matter?

Email servers

Some receiving mail servers look at the sending IP reverse name. Hosting providers commonly ask you to set it for a mail server.

Logs and tools

Traceroute and log analyzers show names instead of raw addresses.

Abuse reports

A meaningful PTR name helps others identify who runs an address.

How do you check that forward and reverse DNS agree?

  • Run nslookup on the IP address and note the returned hostname
  • Run nslookup on that hostname and confirm it returns the same IP address
  • Make sure the hostname is a name you control, not a generic provider name, if you plan to use it for a mail server
  • Repeat for IPv6 addresses with an AAAA record and an ip6.arpa PTR
  • Expect each IP to have one meaningful PTR name, even if several hostnames point at the IP

What can go wrong with reverse DNS?

No PTR record

nslookup reports a nonexistent domain for the address. Ask the IP owner to add one.

Generic provider name

Hosts often pre-fill a name based on the IP address. Replace it with a hostname that matches your own forward record.

Mismatched forward lookup

The PTR name resolves to a different IP, so checks that compare both directions fail.

Common questions

What is a reverse DNS lookup?

A reverse DNS lookup starts from an IP address and returns a hostname. It is the opposite of a normal lookup and uses PTR records stored under in-addr.arpa for IPv4 and ip6.arpa for IPv6.

What is a PTR record?

A PTR (pointer) record holds a hostname and sits at the reverse name of an IP address. It points to another place in the domain tree as plain data, with no alias processing.

Why can I not add a PTR record in my domain DNS panel?

The reverse zone belongs to whoever owns the IP block, so the record is created at your hosting provider or ISP. Your domain DNS host has no authority over in-addr.arpa entries for your address.

How do I do a reverse lookup on Windows?

Open Command Prompt and run nslookup followed by the IP address. If the address has a PTR record, nslookup prints the name; otherwise it reports a nonexistent domain.

Can an IP address have more than one PTR record?

DNS allows it, but one PTR per address is the safe practice. Software that reads the reverse name usually takes the first answer, and several names can make the result unpredictable and break checks that compare names.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.