本API提供简单高效的DNS记录查询服务,支持多种DNS记录类型的查询。
https://api.u-eptm.top/DNSrq/api/
参数名 | 类型 | 必需 | 描述 |
---|---|---|---|
domain | string | 是 | 要查询的域名(如:example.com) |
type | string | 否 | DNS记录类型(默认:所有类型) |
https://api.u-eptm.top/DNSrq/api/?domain=example.com&type=A
POST https://api.u-eptm.top/DNSrq/api/
Content-Type: application/x-www-form-urlencoded
domain=example.com&type=MX
{
"domain": "example.com",
"type": "ALL",
"records": [
{
"type": "A",
"data": [
{
"host": "example.com",
"class": "IN",
"ttl": 71,
"type": "A",
"ip": "23.192.228.80"
},
{
"host": "example.com",
"class": "IN",
"ttl": 71,
"type": "A",
"ip": "23.192.228.84"
},
{
"host": "example.com",
"class": "IN",
"ttl": 71,
"type": "A",
"ip": "23.215.0.136"
},
{
"host": "example.com",
"class": "IN",
"ttl": 71,
"type": "A",
"ip": "23.215.0.138"
},
{
"host": "example.com",
"class": "IN",
"ttl": 71,
"type": "A",
"ip": "96.7.128.175"
},
{
"host": "example.com",
"class": "IN",
"ttl": 71,
"type": "A",
"ip": "96.7.128.198"
}
]
},
{
"type": "MX",
"data": [
{
"host": "example.com",
"class": "IN",
"ttl": 68567,
"type": "MX",
"pri": 0,
"target": "."
}
]
},
{
"type": "NS",
"data": [
{
"host": "example.com",
"class": "IN",
"ttl": 86400,
"type": "NS",
"target": "a.iana-servers.net"
},
{
"host": "example.com",
"class": "IN",
"ttl": 86400,
"type": "NS",
"target": "b.iana-servers.net"
}
]
},
{
"type": "SOA",
"data": [
{
"host": "example.com",
"class": "IN",
"ttl": 60,
"type": "SOA",
"mname": "ns.icann.org",
"rname": "noc.dns.icann.org",
"serial": 2025011613,
"refresh": 7200,
"retry": 3600,
"expire": 1209600,
"minimum-ttl": 3600
}
]
},
{
"type": "TXT",
"data": [
{
"host": "example.com",
"class": "IN",
"ttl": 86400,
"type": "TXT",
"txt": "v=spf1 -all",
"entries": [
"v=spf1 -all"
]
},
{
"host": "example.com",
"class": "IN",
"ttl": 86400,
"type": "TXT",
"txt": "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9",
"entries": [
"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"
]
}
]
}
],
"time": "2025-04-17 17:34:52",
"Facilitator": "U-EPTM|API"
}