Back to DNS Lookup

API Documentation

Free DNS and domain tools API. No authentication required.

Base URL
https://dns-lookup.com
Format
JSON
Authentication
None (Public)
Fair Usage

This API is free for reasonable use. Please be respectful and avoid excessive requests. For high-volume needs, consider running your own instance or contact us.

Endpoints

Code Examples

JavaScript / Fetch

const response = await fetch('https://dns-lookup.com/api/dns?domain=example.com');
const data = await response.json();
console.log(data.records);

cURL

curl "https://dns-lookup.com/api/dns?domain=example.com&types=A,MX"

Python

import requests

response = requests.get('https://dns-lookup.com/api/dns', params={
    'domain': 'example.com',
    'types': 'A,MX,TXT'
})
data = response.json()
print(data['records'])

Questions or issues? Contact us