apiverve / dnslookup
DNS Lookup is a simple tool for looking up the DNS records of a domain. It returns the A, MX, and other records of the domain.
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is not auto-updated.
Last update: 2026-07-16 23:50:47 UTC
README
DNS Lookup is a simple tool for looking up the DNS records of a domain. It returns the A, MX, and other records of the domain.
The DNS Lookup API provides a simple, reliable way to integrate dns lookup functionality into your applications. Built for developers who need production-ready dns lookup capabilities without the complexity of building from scratch.
Quick Start
Using JavaScript
async function callDNSLookupAPI() { try { const params = new URLSearchParams({ domain: 'myspace.com' }); const response = await fetch(`https://api.apiverve.com/v1/dnslookup?${params}`, { method: 'GET', headers: { 'x-api-key': 'YOUR_API_KEY_HERE' } }); const data = await response.json(); console.log(data); } catch (error) { console.error('Error:', error); } } callDNSLookupAPI();
Using cURL
curl -X GET "https://api.apiverve.com/v1/dnslookup?domain=myspace.com" \ -H "x-api-key: YOUR_API_KEY_HERE"
Get your API key: https://apiverve.com
📁 For more examples, see the examples folder
Installation
Choose your preferred programming language:
📦 NPM (JavaScript/Node.js)
npm install @apiverve/dnslookup
View NPM Package → | Package Code →
🔷 NuGet (.NET/C#)
dotnet add package APIVerve.API.DNSLookup
View NuGet Package → | Package Code →
🐍 Python (PyPI)
pip install apiverve-dnslookup
View PyPI Package → | Package Code →
💎 Ruby (RubyGems)
gem install apiverve_dnslookup
View RubyGems Package → | Package Code →
🐘 PHP (Packagist)
composer require apiverve/dnslookup
View Packagist Package → | Package Code →
🎯 Dart (pub.dev)
dart pub add apiverve_dnslookup
View pub.dev Package → | Package Code →
🤖 Android (JitPack)
implementation 'com.github.apiverve:dnslookup-api:1.0.0'
🐹 Go
go get github.com/apiverve/dnslookup-api/go
Why Use This API?
| Feature | Benefit |
|---|---|
| Multi-language SDKs | Native packages for JavaScript, Python, C#, Go, and Android |
| Simple Integration | Single API key authentication, consistent response format |
| Production Ready | 99.9% uptime SLA, served from 24 global regions |
| Comprehensive Docs | Full examples, OpenAPI spec, and dedicated support |
Documentation
- 🏠 API Home: DNS Lookup API
- 📚 API Reference: docs.apiverve.com/ref/dnslookup
- 📖 OpenAPI Spec: openapi.yaml
- 💡 Examples: examples/
What Can You Build?
The DNS Lookup API is commonly used for:
- Web Applications - Add dns lookup features to your frontend or backend
- Mobile Apps - Native SDKs for Android development
- Automation - Integrate with n8n, Zapier, or custom workflows
- SaaS Products - Enhance your product with dns lookup capabilities
- Data Pipelines - Process and analyze data at scale
API Reference
Authentication
All requests require an API key in the header:
x-api-key: YOUR_API_KEY_HERE
Get your API key: https://apiverve.com
Response Format
Every APIVerve endpoint returns the same envelope — check status, then read data:
{
"status": "ok",
"error": null,
"data": { ... }
}
Example Response
A real response from the DNS Lookup API:
{
"status": "ok",
"error": null,
"data": {
"domain": "myspace.com",
"records": {
"A": [
"34.111.176.156"
],
"MX": [
{
"exchange": "us-smtp-inbound-1.mimecast.com",
"priority": 10
},
{
"exchange": "us-smtp-inbound-2.mimecast.com",
"priority": 10
}
],
"NS": [
"ns-cloud-a4.googledomains.com",
"ns-cloud-a1.googledomains.com",
"ns-cloud-a2.googledomains.com",
"ns-cloud-a3.googledomains.com"
],
"SOA": {
"nsname": "ns-cloud-a1.googledomains.com",
"hostmaster": "cloud-dns-hostmaster.google.com",
"serial": 2,
"refresh": 21600,
"retry": 3600,
"expire": 259200,
"minttl": 300
},
"TXT": [
"cr40m536tje9on1slld9bi81bg",
"qpdYoeakhlmAxsnmxgAVFmJgUSibqb/y+Eu6GGn8pdmLf+mFGIB3jhRAxIC5KObsPMES9MW2c+oOrpOo/lCQVw==",
"oZ19a+EOIwWVDPJ7POj14UAGBfzk9xcJMmsTUAMUy7H82sDuVCxvw9rZqdg3znFrdTH04+49zd1djhEAt0ooiA==",
"MS=ms89904786",
"google-site-verification=eu-3gW1JePvsGRRCaEvH17YUOTFJNofm4lnz2Pk0LTc",
"google-site-verification=q0iWqpcfOBclAJaCeWh83v62QQ4uCgbWObQ08p37qgU",
"al4upe6q5cl13sg4srvfivflvg",
"v=spf1 mx ip4:63.208.226.34 ip4:204.16.32.0/22 ip4:67.134.143.0/24 ip4:216.205.243.0/24 ip4:34.85.156.5/32 ip4:35.245.108.108/32 ip4:34.86.129.193/32 ip4:34.86.134.94/32 ip4:34.85.222.234/32 ip4:34.86.176.234/32 ip4:34.86.125.212/32 ip4:34.85.224.60/32 ip4:34.86.160.49/32 ip4:35.245.64.166/32 ip4:35.188.226.11/32 ip4:34.86.208.228/32 ip4:34.85.216.144/32 ip4:35.221.22.153/32 ip4:34.86.137.108/32 ip4:34.86.51.35/32 ip4:34.150.221.40/32 ip4:34.85.216.70/32 ip4:34.86.37.191/32 ip4:34.85.214.215/32 ip4:35.236.234.82/32 ip4:34.86.161.241/32 ip4:216.32.181.16 ip4:216.178.32.0/20 ip4:168.235.224.0/24 include:_netblocks.mimecast.com -all",
"cj65vjpq0s1v9u7vfo020c6rel"
]
},
"summary": {
"hasIPv6": false,
"hasMailServers": true,
"hasSPF": true
}
}
}
Support & Community
- 🏠 API Home: DNS Lookup API
- 💬 Support: https://apiverve.com/contact
- 🐛 Issues: GitHub Issues
- 📖 Documentation: https://docs.apiverve.com
- 🌐 Website: https://apiverve.com
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Security
For security concerns, please review our Security Policy.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built with ❤️ by APIVerve
Copyright © 2026 APIVerve. All rights reserved.