DNS Lookups Statistic
The DNS API provides a fast way to see the records associated with a domain name. It gives a quick, at-a-glance view of how a domain is configured to help you make decisions based on its DNS information.
The data is based on the current DNS records such as A, AAAA, MX, NS, TXT and more.
Try ItView API DocsLast Updated:
Examples
Quickly check the DNS records for your domain:~ $
curl -H "Authorization: token YOUR_API_KEY" https://dnsdb.shodan.io/example.com
Use the requests Python library to lookup nodejs.org:
import requests
headers = {"Authorization": "token YOUR_API_KEY"}
dns_info = requests.get("https://dnsdb.shodan.io/nodejs.org", headers=headers).json()
Frequently Asked Questions
- How often is it updated?
The DNS data gets updated once a week. - Do I need a Shodan account?
Yes. The DNS API is available to Shodan account holders. Log in or sign up at account.shodan.io. - How is it different than the regular Shodan API?
The DNS API provides only DNS-related information for a domain (A, AAAA, MX, NS, TXT, etc.). It doesn't return service banners or vulnerability data. It is updated weekly, while the regular Shodan API is updated continuously in real-time.
{
"domain": "example.com",
"subdomain_count": 42,
"subdomains": [
"www",
"api"
],
"port_distribution": {
"443": 27
},
"tag_distribution": {
"vpn": 10
},
"technologies": [
"mysql"
],
"subdomain_ports": {
"www": {
"443": 1
}
},
"has_dmarc": true,
"has_spf": true,
"has_dkim": false,
"supports_ipv6": true,
"hosting_providers": [
"AWS"
],
"cdn_providers": [
"Cloudflare"
],
"nameservers": [
"ns2.example.com"
],
"txt_records": [
"google-site-verification=abc123xyz"
],
"ips": [
"93.184.216.34"
],
"asn_distribution": {
"AS16509": 22
},
"country_distribution": {
"US": 25
},
"vulns_count": 3,
"vulns": [
"CVE-2021-41773",
"CVE-2023-24055",
"CVE-2020-1472"
],
"epss_scores": [
0.71,
0.63,
0.41
],
"certificate_authorities": [
"DigiCert"
]
}