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.
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/dns/ptr/{ip address}.json |
JSONP | https://get.geojs.io/v1/dns/ptr.js https://get.geojs.io/v1/dns/ptr/{ip address}.js |
Paramater | Default | Description | Endpoint |
---|---|---|---|
ip |
None | Allows searching of a specific PTR | All |
callback |
ptr |
JSONP callback | /v1/ip/geo.js |
google-public-dns-a.google.com
{
"ptr": "google-public-dns-a.google.com"
}
ptr({
"ptr": "google-public-dns-a.google.com"
})