域名DNS查询

GETPOST

查询指定域名的 DNS 记录信息,包括 A 记录、CNAME、MX 记录、TXT 记录等解析结果。

https://api.auth.top/api/dns
https://api.auth.top/api/dns

请求参数

将 Key 放到 Header 中使用 Authorization 请求头,按 Bearer Token 方式传递
Authorization:Bearer YOUR_API_KEY

接口指标

QPS 上限
30次/秒
平均响应时间
0ms

请求示例

Shell
JavaScript
Python
PHP
Java
Go
C#
Ruby
curl -X POST 'https://api.auth.top/api/dns' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d 'domain=域名' \
  -d 'type=A' \
  -d 'format=json'

返回示例

{
  "code": 200,
  "message": "查询成功",
  "data": {
    "domain": "api.auth.top",
    "type": "A",
    "count": 2,
    "records": [
      {
        "type": "A",
        "host": "api.auth.top.eo.dnse2.com",
        "ttl": 10,
        "ip": "43.174.246.32"
      },
      {
        "type": "A",
        "host": "api.auth.top.eo.dnse2.com",
        "ttl": 10,
        "ip": "43.174.247.32"
      }
    ]
  },
  "time": "2026-01-08 22:35:35"
}