GET
tool-dns
公开接口 累计 2 次/api/v1/tool-dns
通过 DoH 查询 A/AAAA/CNAME/MX/TXT 等记录
/api/v1/tool-dns
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
name |
string |
必填 | - | 域名,如 example.com |
type |
string |
可选 | A |
记录类型 |
provider |
string |
可选 | alidns |
DoH 服务商 |
{
"ok": true,
"data": {
"result": {
"name": "example.com",
"type": "A",
"count": 1,
"answers": [
{
"type": 1,
"ttl": 300,
"data": "93.184.216.34"
}
]
}
}
}
curl -X GET '/api/v1/tool-dns?type=A&provider=alidns'