Reverse DNS lookup service.
A service that returns the host names of the provided IP addresses
npm i reverse-dns-lookup
npm start
curl -H 'Content-Type: application/json' -d '{"ips":["8.8.8.8", "8.8.4.4"]}' http://localhost:8465/
# Example formatted output:
# {
# "8.8.8.8" : [
# "google-public-dns-a.google.com"
# ],
# "8.8.4.4" : [
# "google-public-dns-b.google.com"
# ]
# }
The body is expected to have a content-type of application/json.
Key | Description |
---|---|
ip |
a single IP address |
ips |
multiple IP addresses |
An object with the ip address as key and an array of host names.
See the contribute file!
PRs accepted.