PTR

Returns PTR (pointer record) information about an IP

This endpoint is unique since it doesn’t return geographical information about an IP but DNS pointer record information. This is mostly used in the GeoJS App but is documented here for other people to use.

Note: You cannot lookup multiple PTR records at once with this endpoint, the ip parameter only lets you look up a single record, not a comma separated list.

URIs

Type URI
Plain text https://get.geojs.io/v1/dns/ptr
https://get.geojs.io/v1/dns/ptr/{ip address}
JSON https://get.geojs.io/v1/dns/ptr.json
https://get.geojs.io/v1/ip/geo/{ip address}.json
JSONP https://get.geojs.io/v1/dns/ptr.js
https://get.geojs.io/v1/ip/geo/{ip address}.js

Query Parameters

Paramater Default Description Endpoint
ip None Allows searching of a specific PTR All
callback ptr JSONP callback /v1/ip/geo.js

Examples

Plain text

google-public-dns-a.google.com

JSON

{
  "ptr": "google-public-dns-a.google.com"
}

JSONP

ptr({
  "ptr": "google-public-dns-a.google.com"
})