Skip to content

A comprehensive DNS lookup service with support for multiple record types and resolvers.

License

ufukart/DNS-Lookup-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🌐 DNS Lookup API

A comprehensive DNS lookup service with support for multiple record types and resolvers.

Donate


🔌 Endpoints

GET /api/lookup

Retrieve DNS records for a domain or IP address.

  • Parameters:
    • domain (required): Domain name or IP address (e.g. example.com or 8.8.8.8)
    • resolver (optional): Choose from google, cloudflare, opendns, or quad9

GET /health

Health check endpoint to verify service availability.


🧪 Example Usage

Domain Lookup

/api/lookup?domain=example.com&resolver=cloudflare

PTR (Reverse DNS) Lookup

/api/lookup?domain=8.8.8.8&resolver=google

Demo Page

DNS Lookup API Web Page
DNS Lookup API JSON Result


📄 Supported Record Types

  • A
  • AAAA
  • NS
  • MX
  • TXT
  • CNAME
  • SOA
  • SRV
  • CAA
  • PTR (reverse DNS)

🚦 Rate Limiting

Rate limiting is applied per IP address to ensure fair usage and prevent abuse.


🛠️ Coming Soon

  • Caching for frequent lookups
  • Authentication support (API keys)
  • JSON schema validation

🤝 Contributing

Feel free to open issues or pull requests to suggest improvements or report bugs.


📬 Contact

For any questions or feedback, please reach out via GitHub Issues or submit a PR.

About

A comprehensive DNS lookup service with support for multiple record types and resolvers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages