---
title: "Reverse DNS lookup for an IP address"
method: GET
path: "/api/v1/dns/reverse/{ip}"
tags: ["DNS Lookup API"]
---

# Reverse DNS lookup for an IP address

`GET /api/v1/dns/reverse/{ip}`

Returns the PTR record (hostname) for a given IPv4 or IPv6 address. Results are cached for 5 minutes.

## Path parameters

- `ip` string, required

## Response `200`

Reverse DNS lookup completed (hostname may be null if no PTR record exists)

- ReverseDnsResponse
  - `ip` string, required
  - `hostname` string, nullable
  - `ptr_record` string
  - `ttl` integer, nullable

## Other responses

- `400` — Invalid IP address format
- `502` — DNS lookup failed

---

[API](https://skmtc.dev/ip-api/apis/ip-api-io-ip-geolocation-security-api.md) · [All operations](https://skmtc.dev/ip-api/apis/ip-api-io-ip-geolocation-security-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ip-api/ip-api-io-ip-geolocation-security-api/revisions/a6862f586bf3/schema)
