Skip to main content

Command Palette

Search for a command to run...

DNS Lookup API Documentation

Published
5 min readView as Markdown
DNS Lookup API Documentation

Domain DNS Information Query API

Category: Web Tools
Endpoint: /v1/websitetools/dns-lookup
Method: GET
Description: Returns data for various record types such as A, AAAA, MX, TXT, NS, CNAME, SRV, PTR, SOA.

Overview

The Domain DNS Information Query API by GuGuData enables real-time DNS record lookups for any public domain. With its rich and flexible data structure, this API reveals a comprehensive suite of DNS records—A, AAAA, MX, TXT, NS, CNAME, SRV, PTR, SOA—all parsed in milliseconds. Designed to handle high concurrency, it is ideal for enterprise-scale applications like domain management, DevOps workflows, content delivery optimization, and more.

Key benefits include:

  • Complete DNS record coverage – A single query can retrieve multiple record types.
  • Low-latency performance – High-speed lookups with nationwide multi-node CDN support.
  • Millisecond parsing – Ideal for real-time monitoring or automation scripts.
  • HTTPS/TLS compliance – Fully compatible with Apple ATS and TLS v1.0 through v1.3.

Request URL

GET https://api.gugudata.io/v1/websitetools/dns-lookup

Demo URL

You can test the API using our live demo endpoint:

https://api.gugudata.io/v1/websitetools/dns-lookup/demo

Request Parameters

Send a GET request to the above endpoint with the following query parameters:

ParameterTypeRequiredDefault ValueDescription
appkeystringYesYOUR_APPKEYYour unique APPKEY obtained from the GuGuData Developer Center.
domainstringYesYOUR_VALUEThe domain to resolve (e.g., gugudata.com). No https:// prefix needed.

Response Parameters

The API returns a JSON structure containing the requested DNS record data. Below is an overview of the key fields:

ParameterTypeRequiredDescription
dataStatus.requestParameterstringYesThe requested domain parameter.
dataStatus.statusCodeintegerYesThe HTTP status code.
dataStatus.statusstringYesRequest status (e.g., OK, Error).
dataStatus.statusDescriptionstringYesDescription of the request status.
dataStatus.responseDateTimestringYesThe timestamp when the data was returned.
dataStatus.dataTotalCountintegerYesThe total number of returned data items.
data.*stringYesAn array of DNS records, each containing the domain, TTL, class, type, and value. Types include: A, AAAA, MX, TXT, NS, CNAME, SRV, PTR, SOA.
data.*.domainstringYesThe resolved domain.
data.*.ttlstringYesTime-to-live (TTL) value for the record.
data.*.classstringYesRecord class (typically IN).
data.*.typestringYesRecord type (e.g., A, MX, NS, etc.).
data.*.valuestringYesActual value or target of the record.

Error Codes

Below is a list of common error codes you might encounter:

Error CodeError ContentNotes
200Normal returnIndicates a successful request.
400Parameter errorPossibly a missing or malformed parameter.
429Request frequency limitedYou have exceeded the rate limit of 100 requests/second.
403Account in arrearsAccount requires payment; check notifications for billing info.
402APPKEY errorEnsure your APPKEY matches the one in your Developer Center.
500API response errorA server-side error occurred; try again later.

Features

  1. Complete DNS resolution – Collects A, AAAA, MX, TXT, NS, CNAME, SRV, PTR, SOA records in one request.
  2. Rich resolution record types – Ensures flexibility for domain management, server migrations, and troubleshooting.
  3. Multiple query support – Seamlessly handle numerous domain lookups.
  4. Millisecond parsing performance – Enables real-time processing in high-concurrency environments.
  5. HTTPS/TLS (v1.0–v1.3) support – Secure data transfer, fully compatible with Apple ATS.
  6. Nationwide multi-node CDN – Optimized for low latency and reliable performance.
  7. Load-balanced infrastructure – High availability even under heavy load.

Additional Notes for Developers

  • Domain-only input: Use simple domain names (e.g., example.com). Subdomains are supported but do not require the https:// prefix.
  • Check concurrency: Monitor usage stats in the Developer Center to avoid hitting the 100 req/sec rate limit.
  • Wide use cases: Ideal for DevOps, DNS troubleshooting, multi-CDN strategies, or building dashboards for domain administrators.

Getting Started

  1. Sign up at GuGuData.io – Create an account to obtain your appkey.
  2. Construct a GET request – Pass appkey and domain as query parameters.
  3. Inspect the Response – Verify DNS record data in the returned JSON.
  4. Integrate – Use this information for server setups, domain health checks, or real-time dashboards.

About GuGuData

GuGuData has led the data solutions field for nearly a decade, offering a broad range of APIs — from SSL Certificate Parsing to Webpage Readable Content Extraction. We constantly organize, cleanse, and integrate data, enabling developers, businesses, and analysts to quickly achieve scalable, reliable insights.

Key Highlights:

  • Nine years in business – Our stable track record ensures top-tier solutions.
  • 4.2k+ APIs – Explore a diverse library of data and functionality.
  • 95% happy customers – Trusted by companies worldwide for quality and innovation.

With the Domain DNS Information Query API, gain unparalleled visibility into your DNS configuration and ensure your domains are set up optimally. Visit our official website to discover more groundbreaking data services.

More from this blog

网页转 JSON API 怎么接:从 Prompt 到可校验的结构化数据

把网页内容变成 JSON,真正困难的部分通常不是“得到一段看起来像 JSON 的文本”,而是让字段含义、数据类型、缺失值、来源和更新规则都能被程序稳定处理。 语义化获取站点 JSON 结构内容 API 可以根据网页 URL 和自然语言 Prompt 提取自定义结构。它适合商品列表、文章索引、表格内容、站点研究和自动化数据准备等场景,但接口返回成功并不代表所有字段都已经过事实验证。生产接入仍需要本地

Aug 27, 20265 min read

地址逆编码接口 API

此文章对开放数据接口 API 之「地址逆编码接口 API」进行了功能介绍、使用场景介绍以及调用方法的说明,供用户在使用数据接口时参考之用,并且在目前更新的微信小程序实战开发项目中的使用场景。 1. 产品功能 此次开放了精准的地址坐标逆编码在线接口,用于对提供的 GPS 坐标转换为文字地址信息。 提供精准、高效的地理坐标逆编码接口; 返回的地址包含详细的位置信息; 一次可返回坐标周边的 10

Aug 3, 20261 min read

中英文排版规范化 API

此文章对开放数据接口 API 之「中英文排版规范化 API」进行了功能介绍、使用场景介绍以及调用方法的说明,供用户在使用数据接口时参考之用。 1. 产品功能 此次开放了中英文排版规范化在线接口,用于自动中英文排版、标点符号格式化,中英混排格式化 / 标点修正。 支持中英文混排格式化; 自动在汉字与英文字符、英文标点、数字间添加空格; 中文标点符号自动规范化,遵从 [标点符号用法 GB/T

Aug 3, 20261 min read

为阿里云站点部署免费 HTTPS

本文记录了部署在阿里云的站点,在申请了免费的 SSL 证书后如何正确的部署到站点上,让站点支持 HTTPS 访问。 阿里云引入了沃通作为 CA 证书供应商,并开放了免费 SSL 申请的页面,之前一直想给 咕咕监控 部署上全站 HTTPS,所以就申请了一个,但是部署的过程中遇到了些问题,所以记录下来备忘。 1. 证书申请 在阿里云后台的 CA 管理页面,填写相关的信息后就可以申请到一张免费的 CA

Aug 3, 20261 min read

GuGuData

178 posts