Reverse DNS API - Resolve IP to Hostname (PTR Record)
Performs a reverse DNS lookup on an IP address and returns PTR records. Useful for identifying the hostname associated with an IP.
Code examples
curl -X POST https://api.botoi.com/v1/ip/reverse \
-H "Content-Type: application/json" \
-d '{"ip":"8.8.8.8"}'When to use this API
Verify email sender infrastructure
When processing inbound email, resolve the sending server IP to its PTR record. Compare the hostname against the HELO/EHLO identity to confirm the sender is who they claim to be, reducing spam and spoofing.
Identify server owners in log analysis
Parse web server access logs and resolve high-traffic IPs to their PTR hostnames. Quickly determine whether traffic spikes come from known crawlers (like googlebot or bingbot) or unknown sources that need investigation.
Network troubleshooting and traceroute annotation
Annotate each hop in a traceroute with its PTR hostname to make network path analysis more readable. Hostnames like "ae-1.r01.snjsca04.us.bb.gin.ntt.net" tell you the provider, location, and router role at a glance.
Frequently asked questions
What is a PTR record?
Why might an IP return no PTR records?
How fast are reverse DNS lookups?
Can I use this to verify if an IP belongs to Google?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.