Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

License

Notifications You must be signed in to change notification settings

ufukart/DNS-Lookup-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 DNS Lookup API

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

Donate

dns-lookup-api

License: MIT Update Status Last Updated GitHub repo size Visitors 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, quad9, adguard, dnswatch, comodo, cleanbrowsing, ultradns

GET /health

Health check endpoint to verify service availability.

GET /metrics

Prometheus metrics endpoint - Performance and usage statistics


πŸ§ͺ 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

πŸ“„ 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.