域名dns解析查询
本API用于查询指定域名的DNS解析记录。支持查询A记录(IPv4)、AAAA记录(IPv6)、CNAME(别名)、MX(邮件交换)、NS(域名服务器)、TXT(文本记录)、SOA(起始授权机构)等主流记录类型。适用于运维排查、域名检测、网络诊断等场景。
接口信息
GET / POST
api.11as.cn/api/dns/index.php
Method
GET / POST
分类
网络服务
Calls
151
KEY
无需 KEY
计费
免费
QPM
不限制
鉴权方式
无需密钥
作者
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 否 | 平台 API 访问密钥(选填) | sk_xxxxxxxxxxxxxxxx |
| domain | string | 是 | 需要查询的域名(支持自动提取URL中的域名,例如:baidu.com 或 https://baidu.com) |
[
{
"name": "key",
"type": "string",
"required": false,
"description": "平台 API 访问密钥(选填)",
"example": "sk_xxxxxxxxxxxxxxxx"
},
{
"name": "domain",
"type": "string",
"required": true,
"description": "需要查询的域名(支持自动提取URL中的域名,例如:baidu.com 或 https://baidu.com)",
"example": ""
}
]
返回示例
{
"code": 200,
"msg": "success",
"data": {
"domain": "baidu.com",
"records": {
"A": [
{
"ip": "39.156.66.10",
"ttl": 300
},
{
"ip": "110.242.68.66",
"ttl": 300
}
],
"AAAA": [],
"CNAME": [],
"MX": [
{
"host": "mx.maillb.baidu.com",
"priority": 10,
"ttl": 7200
},
{
"host": "mx.nsh.baidu.com",
"priority": 15,
"ttl": 7200
}
],
"NS": [
{
"server": "ns1.baidu.com",
"ttl": 86400
},
{
"server": "ns2.baidu.com",
"ttl": 86400
},
{
"server": "ns3.baidu.com",
"ttl": 86400
},
{
"server": "ns4.baidu.com",
"ttl": 86400
}
],
"TXT": [
{
"value": "v=spf1 ip4:220.181.19.0/24 ip4:123.125.66.0/24 ip4:220.181.50.0/24 ip4:61.135.167.0/24 ip4:61.135.166.0/24 ip4:61.135.165.0/24 ip4:202.108.22.0/24 ip4:202.108.23.0/24 ip4:202.108.18.0/24 ip4:61.135.168.0/24 ip4:61.135.169.0/24 ip4:61.135.170.0/24 ip4:180.149.133.0/24 ip4:180.149.129.0/24 ip4:180.149.128.0/24 ip4:220.181.52.0/24 -all",
"ttl": 7200
}
],
"SOA": [
{
"mname": "ns1.baidu.com",
"rname": "dns.baidu.com",
"serial": 2012150012,
"refresh": 300,
"retry": 300,
"expire": 2592000,
"minimum_ttl": 7200
}
]
},
"stats": {
"total_records": 9,
"response_time": "86ms",
"query_time": "2023-10-27 10:30:00"
}
},
"api_info": {
"developer": "尋鯨錄",
"blog": "https://www.xunjinlu.fun",
"api_platform": "https://api.xunjinlu.fun"
}
}
接口反馈
暂无详细文档
快速上手
暂无代码示例。管理员可在后台用 AI 生成或手动编写。
免责声明
使用本平台接口即表示同意本声明。
- 数据来源:接口数据来自第三方公开网络或用户上传,本平台不保证准确性、完整性、实时性,请以官方信息为准。
- 合法性与安全性:本平台无法核实每个接口的安全性、合法性,使用者自行承担相关风险。
- 用途限制:标注“学习专用”的接口禁止商用;严禁用于违法违规行为(如诈骗、赌博、侵权等)。违规后果由使用者自行承担。
- 损害免责:使用本接口产生的任何直接或间接损失,本平台不承担责任。
- 第三方上传:用户/商户上传的接口若侵权或违法,由上传者承担全部责任。
- 监督配合:本平台依法记录访问日志,如发现违法活动将配合执法部门处理,并有权随时限制或封禁服务。
注:本平台保留最终解释权,并可能随时更新本声明。
在线测试
请求地址
api.11as.cn/api/dns/index.php
Method
参数
Response
等待中
// 结果将在此处显示