Geekflare API

DNS Lookup API

Use our DNS record API to retrieve A, AAAA, MX, TXT, and other records to troubleshoot propagation issues and verify domain configurations.

99.9% UptimeAll DNS Record TypesNon-Intrusive
Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"timestamp": 1768928680049,
"apiStatus": "success",
"apiCode": 200,
"meta": {
"url": "geekflare.com",
"test": {
"id": "fcdbbcd8-7c49-48b6-aa92-77f106deed4c"
}
},
"data": {
"A": [
"172.66.43.88",
"172.66.40.168"
],
"AAAA": [
"2606:4700:3108::ac42:28a8",
"2606:4700:3108::ac42:2b58"
],
"MX": [
{
"exchange": "aspmx.l.google.com",
"priority": 1
},
{
"exchange": "alt3.aspmx.l.google.com",
"priority": 10
},
{
"exchange": "alt4.aspmx.l.google.com",
"priority": 10
},
{
"exchange": "alt1.aspmx.l.google.com",
"priority": 5
},
{
"exchange": "alt2.aspmx.l.google.com",
"priority": 5
}
],
"CAA": [
{
"critical": 0,
"issuewild": "pki.goog; cansignhttpexchanges=yes"
},
{
"critical": 0,
"issue": "amazontrust.com"
},
{
"critical": 0,
"issuewild": "letsencrypt.org"
},
{
"critical": 0,
"issuewild": "digicert.com; cansignhttpexchanges=yes"
},
{
"critical": 0,
"issue": "amazonaws.com"
},
{
"critical": 0,
"issuewild": "comodoca.com"
},
{
"critical": 0,
"issue": "ssl.com"
},
{
"critical": 0,
"issue": "digicert.com; cansignhttpexchanges=yes"
},
{
"critical": 0,
"issue": "comodoca.com"
},
{
"critical": 0,
"issue": "awstrust.com"
},
{
"critical": 0,
"issue": "letsencrypt.org"
},
{
"critical": 0,
"issue": "amazon.com"
},
{
"critical": 0,
"issue": "pki.goog; cansignhttpexchanges=yes"
},
{
"critical": 0,
"issuewild": "ssl.com"
}
],
"NS": [
"ck.geekflare.com",
"nk.geekflare.com"
],
"SOA": {
"nsname": "ck.geekflare.com",
"hostmaster": "dns.cloudflare.com",
"serial": 2393976291,
"refresh": 10000,
"retry": 2400,
"expire": 604800,
"minttl": 1800
},
"TXT": [
[
"v=spf1 include:_spf.google.com include:_spf.firebasemail.com ~all"
],
[
"yandex-verification: 42f25bad396e79f5"
],
[
"google-site-verification=7QXbgb492Y5NVyWzSAgAScfUV3XIAGTKKZfdpCvcaGM"
],
[
"firebase=geekflare-ai-auth-prod"
],
[
"Sendinblue-code:642dd9bdd25d0e63013fbd24729e722c"
],
[
"firebase=geekflare-production"
],
[
"openai-domain-verification=dv-mkiV9KMU5V7LdupiEzNKimsH"
],
[
"google-site-verification=MRSwa454qay1S6pwwixzoiZl08kfJfkhiQIslhok3-A"
],
[
"admitad-verification: 91fa860493"
],
[
"ahrefs-site-verification_8eefbd2fe43a8728b6fd14a393e2aff77b671e41615d2c1c6fc365ec33a4d6d0"
],
[
"urabin-verify-abc"
],
[
"firebase=geek-flare---tools"
],
[
"google-site-verification=KiMDhEe-34WGA-tTFcQr2Q0Yj-FTdcJTvEfvBIvSQZ8"
]
]
}
}
Trusted by 10,000+ developers

Integrate with your stack

import requests

url = "https://api.geekflare.com/dnsrecord"
payload = {"url": "example.com", "types": ["A", "MX"]}
headers = {
    "x-api-key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)
OpenAPI 3.0Type SafeSSL Encrypted

Why Geekflare DNS API

Record Support

Query all major DNS record types including A, AAAA, CNAME, MX, TXT, NS, SOA, and CAA in a single request.

Email Security Verification

Validate email configuration by retrieving SPF, DKIM, and DMARC policies stored within TXT records.

Targeted Record Queries

Filter your request to retrieve specific record types (e.g., just MX or TXT) instead of fetching the entire DNS zone.

Real-Time Data

We query authoritative nameservers directly to ensure you get the latest data without stale caching issues.

JSON Output

Receive structured JSON responses that make it easy to integrate DNS data into your monitoring tools.

High Availability

Built on a redundant Google Cloud infra to ensure your DNS queries are resolved quickly.

DNS Checker API pricing

Free

$0/mo

500 Credits/mo
Lookup ~500 Domains
1 Request per second

Starter

$9/mo

5K Credits/mo
Lookup ~5000 Domains
5 Requests per second

Growth

Most Popular

$49/mo

100K Credits/mo
Lookup ~100K Domains
25 Requests per second

Business

$249/mo

1M Credits/mo
Lookup ~1M Domains
50 Requests per second

Other Geekflare API services

Web Scraping API

Extract HTML, Markdown, or JSON from dynamic web pages with automatic CAPTCHA solving.

Site Load Time API

Check how much time your site takes to load including DNS, Connect, TLS, and TTFB metrics.

TLS Scanner API

Analyze SSL/TLS certificates for validity, issuer details, and expiration dates.

Broken Link Checker API

Find dead internal and external links on a webpage.

URL Redirection Checker API

Track redirect chains and analyze HTTP status codes to verify URL routing behavior.

Frequently Asked Questions

No. We perform a live query at the time of your request to ensure you are seeing the current state of the DNS records.

A DNS lookup consumes 1 credit per request.

Yes, you can provide the full hostname (e.g., app.example.com or mail.example.com) to retrieve records specific to that subdomain.

With our DNS record API, you can retrieve all standard DNS record types like A, AAAA, CNAME, MX, TXT, NS, SOA, and PTR records.

Yes, Geekflare Domain lookup API is developer-friendly REST API. You can integrate it into any custom application, SaaS dashboard, or backend script using standard HTTPS requests in your preferred programming language. Additionally, if you want to automate workflows, our DNS API connects seamlessly to no-code platforms like Zapier and Make to trigger automated domain monitoring and alerts.

Ready to query DNS records?

Join thousands of developers using Geekflare API to retrieve real-time DNS data.