Skip to content

IP

Find the hostname behind an IP address

Reads the PTR record of an IPv4 or IPv6 address from in-addr.arpa or ip6.arpa. Confirm it with a forward lookup before you trust the name.

Try an example

How to read the result

When a PTR record exists, the status is the host name itself. The rows show the reverse name that was queried and every name returned.

Field What it means What to do with it
Status The first host name found, or No PTR record when there is none. No PTR record on a mail server is a problem to fix. On a home connection, it is normal.
Name queried The reverse name built from the address: the IPv4 octets reversed under in-addr.arpa, or the IPv6 nibbles reversed under ip6.arpa. Shows exactly which DNS name holds the record.
Hostname (PTR) The name the address holder published, lower case and without the trailing dot. One row per PTR record. A label, not proof. Confirm it with a forward lookup, as shown below.
TTL The seconds left before the resolver's cached copy of the PTR record expires. The longest wait for a PTR change to reach this resolver.
Bulk CSV upload Locked. Bulk IP jobs add the network, location and anonymity flags of each address in a CSV. They do not add PTR names. Needs a free account.
API access Locked. The IP endpoint returns the network, location and flags of an address for 1 credit. It does not return the PTR name. Needs a free account, which includes 100 credits every month.

Checks are free: 10 a day without an account.

How the check works

  1. The tool parses the IP address you typed, IPv4 or IPv6. Anything else is refused: reverse DNS starts from an address.
  2. It builds the reverse name. For IPv4, the four octets are reversed under in-addr.arpa (RFC 1035 section 3.5): 192.0.2.10 becomes 10.2.0.192.in-addr.arpa. For IPv6, all 32 hexadecimal digits are reversed, one per label, under ip6.arpa (RFC 3596 section 2.5).
  3. It asks for the PTR record of that name over DNS over HTTPS, first from Cloudflare's resolver, 1.1.1.1, then from Google Public DNS if the first fails, times out or returns SERVFAIL or REFUSED.
  4. It lists every name returned and the TTL of the first.

A reverse name that does not exist and a reverse name without a PTR record both show No PTR record. The difference does not matter here: either way, the address holder has published no name.

Example Name queried Result at the time of writing
8.8.8.8 8.8.8.8.in-addr.arpa dns.google
1.1.1.1 1.1.1.1.in-addr.arpa one.one.one.one
2606:4700:4700::1111 1.1.1.1.0.0.0.0 ... 6.0.6.2.ip6.arpa one.one.one.one
192.0.2.10 10.2.0.192.in-addr.arpa No PTR record: a documentation range (RFC 5737)

Both public resolvers above have forward-confirmed reverse DNS: dns.google resolves back to 8.8.8.8, and one.one.one.one resolves back to 1.1.1.1.

Who controls reverse DNS

Reverse zones follow the address space, not domain names. The regional internet registries delegate the reverse zones of the blocks they allocate to the organizations that hold them, and those organizations publish the PTR records. So the PTR record of your server is in your provider's zone, never in your domain's.

Your situation Where the PTR record is set
A cloud server or a hosted server In the provider's control panel, often as a reverse DNS or PTR setting on the address. Some providers require the forward record to exist first.
A dedicated server or a colocated machine Through the hosting company's panel or support.
An office line with fixed addresses Through the internet provider's support. Some delegate the reverse zone of your block to your own nameservers.
A home or mobile connection Usually not changeable: the provider sets a generic name or none.
Your own address block In the reverse zone the registry delegates to your nameservers. For blocks smaller than a /24, RFC 2317 describes how a provider can delegate the reverse names of part of its block to you.

Forward-confirmed reverse DNS

A PTR record on its own proves little: anyone who controls an address block can put any name in it, including a name in someone else's domain. Forward confirmation closes the gap, because the forward record lives in the domain owner's zone.

  1. Look up the address here. Note the host name, such as mail.example.com.
  2. Look up that name's A record (or AAAA for an IPv6 address) with the DNS lookup.
  3. If the original address is among the answers, the reverse name is forward-confirmed.
Outcome What it means
PTR found, forward lookup includes the address Forward-confirmed. The address holder and the domain owner agree on the name.
PTR found, forward lookup returns other addresses Not confirmed. Common after a server moved, or when the PTR names a host the domain owner never pointed there.
PTR found, the name does not exist Not confirmed. A leftover from an old setup, or a fabricated label.
No PTR record Nothing to confirm. Fix it if the address sends mail.

Reverse DNS and email

Mail is where reverse DNS matters most, and where standards and practice differ. RFC 5321, the SMTP standard, does not require a PTR record. Section 4.1.4 even says a server may verify that the client's EHLO name matches its address but must not refuse a message only because that check failed. RFC 1912, an informational guide to common DNS errors, recommends a matching PTR record for every address.

Receivers apply their own policies on top of the standard. Google's email sender guidelines require valid forward and reverse DNS for sending domains or IPs, and say the sending address must match the address of the host name in the PTR record. Other receivers can count a missing or generic PTR record against a message. For a server that sends mail directly:

  1. Ask the address holder to set a PTR record naming your mail server, such as mail.example.com.
  2. Make that name resolve back to the same address, so the reverse name is forward-confirmed.
  3. Configure the server to announce the same name in EHLO.
  4. Avoid generic names built from the address digits, which look like a pooled or residential connection.
  5. Publish SPF, DKIM and DMARC as well. The email deliverability checker checks them together, and the IP blacklist check shows whether the address is listed.

If you send through an email service rather than your own server, its addresses and their PTR records are its responsibility, not yours.

IPv6 needs reverse DNS too

A mail server with both an IPv4 and an IPv6 address can connect to a receiver over either one, and the receiver checks the address the connection actually came from. A server whose IPv4 address has a perfect PTR record and whose IPv6 address has none will see some of its mail judged without reverse DNS. Either set a forward-confirmed PTR record for the IPv6 address too, or configure the server to send over IPv4 only. Look up both addresses here before you blame the content of your messages.

Common mistakes

Mistake What a receiver sees Fix
Creating a PTR record in your own domain's zone Nothing: the reverse name lives in the address holder's zone. Set it through your provider.
PTR names a host that has no A record A reverse name that cannot be forward-confirmed. Add the A or AAAA record for that name in your domain.
The server moved, the old PTR stayed The new address has no name, or the old name points elsewhere. Set the PTR on the new address and update the forward record.
EHLO announces a different name A mismatch some receivers count against the message. Use the PTR name in EHLO.
Only IPv4 configured IPv6 connections arrive without reverse DNS. Set the IPv6 PTR, or send over IPv4 only.

Reading the host name

Even when it is not forward-confirmed, the shape of a PTR name says something about the address. Use it as context, never as a verdict.

The name looks like What it usually means
A specific host under an organization's domain, such as mail.example.com A server someone configured on purpose. Confirm it with a forward lookup.
A name built from the address digits under a provider's domain A default name the provider assigned. Common for home lines, mobile networks and new servers.
Words such as pool, dynamic, dsl, cable or customer next to the digits An access connection. Receivers that filter on names often treat these as residential.
A default name from a hosting or cloud provider A server nobody renamed. Usual for new machines, unusual for a well-run mail server.
A name in a domain unrelated to the provider or the content Either a deliberate custom name or a misleading one. Forward confirmation tells them apart.

Other uses of reverse DNS

  • Reading logs. A name such as crawl-192-0-2-10.example.net says more than four numbers. Treat it as a hint until it is forward-confirmed.
  • Verifying crawlers. Google documents how to check that a visitor claiming to be Googlebot really is: reverse lookup, check the domain, then forward lookup back to the same address.
  • Network troubleshooting. Traceroute output shows reverse names for each hop, which often name the operator and the location.
  • Investigating an address. A PTR name can point to the provider or the service behind an address. Pair it with the ISP lookup and the datacenter IP checker, which read the network itself.

What reverse DNS cannot tell you

  • Who is behind an address. The name is chosen by the address holder. It can be generic, outdated or misleading.
  • That an address is safe. A tidy forward-confirmed name says the setup is deliberate, nothing about intent.
  • Internal names. Private addresses of RFC 1918 have names only inside their own network. Public resolvers generally return an empty answer for them, as RFC 6303 recommends.
  • Every name an address serves. One address can host thousands of websites. The PTR record names one host, usually the server, not the sites on it.

Reverse DNS at scale

The API does not return PTR names. The IP lookup API returns what reverse DNS often hints at, from the network data itself: the ASN and organization, the network type, the location and the anonymity flags, for 1 credit per address. The IP endpoint reference lists every field, and bulk processing runs it over a CSV. For PTR names across many addresses, a standard DNS client does the job:

bash
dig +short -x 8.8.8.8

Follow each name with a forward lookup to confirm it, as described above.

Same check through the API

One HTTPS call, one credit. The response below is the real schema returned by the API.

cURL
curl https://api.qelka.com/v1/ip \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"ip":"8.8.8.8"}'
JavaScript
const response = await fetch("https://api.qelka.com/v1/ip", {
  method: "POST",
  headers: {
    Authorization: "Bearer sk_test_your_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    ip: "8.8.8.8",
  }),
});
const result = await response.json();
{
  "id": "lkp_01M84QZDZHEMMVZCGDFD9ZD53H",
  "object": "ip",
  "input": "8.8.8.8",
  "version": 4,
  "country": {
    "code": "US",
    "name": "United States"
  },
  "region": "California",
  "city": "Mountain View",
  "asn": {
    "number": 15169,
    "org": "Google LLC",
    "type": "hosting"
  },
  "flags": {
    "tor": false,
    "vpn": false,
    "proxy": false,
    "datacenter": true
  },
  "risk": {
    "score": 35,
    "level": "medium"
  },
  "credits_used": 1,
  "cached": false
}

Bulk and pricing

  • Upload a CSV of up to 2,000,000 rows from the dashboard or the API, pick the column, get the results back as a CSV.
  • Every check costs 1 credit, live phone lookups cost 3. Cached results are billed the same way; calls that fail upstream are not billed.
  • The free plan includes 100 credits every month. Paid plans start at $29 for 10,000 credits.

Frequently asked questions

What is reverse DNS?
The lookup that goes from an IP address to a host name, the opposite of the usual name to address direction. It works through special zones: in-addr.arpa for IPv4 (RFC 1035) and ip6.arpa for IPv6 (RFC 3596), where each address has its own name holding a PTR record. Mail servers, log tools and network diagnostics use it to put a name on an address.
What is a PTR record?
A DNS record that points from one name to another. In reverse DNS, the PTR record at an address's reverse name, such as 8.8.8.8.in-addr.arpa, holds the host name chosen by whoever controls that address. Looking up 8.8.8.8 currently returns dns.google, and 1.1.1.1 returns one.one.one.one. The record is a label set by the address holder, not a proof of identity.
How is the reverse name built for an IPv6 address?
The address is written out in full, 32 hexadecimal digits, and the digits are reversed one by one, separated by dots, under ip6.arpa (RFC 3596). 2001:db8::1 becomes 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. The tool builds that name for you and shows it in the Name queried row.
Who sets the PTR record of an IP address?
Whoever holds the address block: your internet provider, your hosting company or your cloud provider. The reverse zone is delegated to them by the regional internet registry, not to the owner of a domain name. You cannot publish a PTR record in your own domain's zone. Ask the provider, or use the reverse DNS setting many hosting and cloud panels offer.
Why does my IP have no PTR record?
Because the address holder never set one. Home and mobile connections often have a generic name or none at all, and new servers often start with a default name or none. It matters mostly for mail servers. If you send mail from that address, ask your provider to set a PTR record that matches your server's name. For a browsing connection, nothing needs fixing.
Do I need reverse DNS to send email?
In practice, yes. RFC 5321, the SMTP standard, does not require it, and it even forbids refusing a message only because the client's name failed a check. But receivers apply their own policies: Google's email sender guidelines require valid forward and reverse DNS for sending IPs, and other receivers can count a missing PTR record against a message.
What is forward-confirmed reverse DNS?
A two-way check. Look up the PTR record of an address to get a host name, then look up the A or AAAA records of that name. If they include the original address, the address has forward-confirmed reverse DNS. It shows that whoever controls the address and whoever controls the name agree, which a PTR record alone cannot show.
Can a PTR record be faked?
Anyone who controls an address block can put any name in its PTR records, including a name in your domain or a bank's. What they cannot do without controlling the domain is make that name resolve back to their address. That is why forward confirmation matters: trust the name only after the forward lookup returns the same address.
Can an IP address have more than one PTR record?
DNS allows it, and the card lists every name returned. But receivers that compare names may pick any of them, and long lists make answers larger. One PTR record per address, naming a host that resolves back to it, is the setup that works everywhere. Give each extra service its own name with a CNAME or A record instead.
Why does a private IP address show no hostname?
Addresses from the private ranges of RFC 1918, such as 192.168.1.10, only have names inside their own network, if anyone set them. Public resolvers generally answer for those reverse zones with an empty result, as RFC 6303 recommends, so the lookup returns no PTR record. Ask your network's own DNS server for internal names.
How do I check that a crawler is really Googlebot?
Google documents the method: run a reverse DNS lookup on the address from your logs, check that the name is in one of the domains Google lists for its crawlers, such as googlebot.com or google.com, then run a forward lookup on that name and confirm it returns the same address. A User-Agent string alone proves nothing, since anyone can send it.
What should a mail server's PTR record look like?
A specific name under a domain you control, such as mail.example.com, that resolves back to the same address and matches the name the server announces in EHLO. Avoid generic names built from the address digits, which look like a home or pooled connection. The domain in the PTR does not have to match the domains you send mail for.
How long does a PTR change take to show?
The provider usually publishes it within minutes, but resolvers that cached the old answer keep it until its TTL runs out. The TTL row shows how much time this resolver's copy has left. An address that had no PTR record before can stay empty for the zone's negative caching time (RFC 2308).
Does reverse DNS show who owns an IP address?
Not reliably. The PTR name often hints at the provider, through its domain, but it is a label the holder chose, and many addresses have none. To see which network announces an address and the organization registered for it, use the ISP lookup or the ASN lookup.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time