# Reverse DNS Lookup API

> Reverse DNS Lookup resolves IPv4 and IPv6 addresses into their associated hostnames via PTR records. Pass any IP address to check if reverse records exist and receive all matching hostnames.

**Endpoint:** `GET https://api.apiverve.com/v1/reversednslookup`  
**Category:** Domain Data  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/reversednslookup

## Overview

Reverse DNS Lookup works by querying the PTR record for an IP address to find its associated hostname. This is useful for identifying servers, verifying email sender authenticity, and network troubleshooting.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/reversednslookup?ip=8.8.8.8" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `ip` | string | Yes | The IP address to lookup (IPv4 or IPv6). ip |

## Response fields

- `ip` — string · The IP address that was queried
- `hostname` — string · Hostname associated with the IP address
- `ptr` — array · All PTR hostnames resolved for the IP address
- `found` — boolean · Whether a PTR record was found

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "ip": "8.8.8.8",
    "hostname": "dns.google",
    "ptr": [
      "dns.google"
    ],
    "found": true
  }
}
```

## Use cases

- **Email Verification** — Verify email sender authenticity by checking if the sending IP has a valid reverse DNS entry matching the sender domain
- **Server Identification** — Identify what server or service is running on an IP address by looking up its hostname
- **Network Troubleshooting** — Diagnose network issues by verifying that IP addresses resolve to expected hostnames
- **Security Analysis** — Investigate suspicious IPs by discovering their associated hostnames and infrastructure

## SDKs

- **npm** — `npm install @apiverve/reversednslookup` (https://www.npmjs.com/package/@apiverve/reversednslookup)
- **PyPI** — `pip install apiverve-reversednslookup` (https://pypi.org/project/apiverve-reversednslookup/)
- **NuGet** — `dotnet add package APIVerve.API.ReverseDNSLookup` (https://www.nuget.org/packages/APIVerve.API.ReverseDNSLookup)
- **Source** — https://github.com/apiverve/reversednslookup-api

## More

- Full reference: https://docs.apiverve.com/ref/reversednslookup
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
