DNS 查询助手

DNS 查询助手

curl -X POST https://mate.tools/api/v1/dns-lookup.php \

-H "Content-Type: application/json" \

-d '{"domain":"example.com","types":["A","AAAA","MX","TXT"]}' import urllib.request, json

req = urllib.request.Request(

"https://mate.tools/api/v1/dns-lookup.php",

data=json.dumps({"domain":"example.com","types":["A","AAAA","MX","TXT"]}).encode(),

headers={"Content-Type": "application/json"},

)

with urllib.request.urlopen(req) as r:

print(json.load(r)) const r = await fetch("https://mate.tools/api/v1/dns-lookup.php", {

method: "POST",

headers: { "Content-Type": "application/json" },

body: JSON.stringify({"domain":"example.com","types":["A","AAAA","MX","TXT"]}),

});

console.log(await r.json()); 添加到 claude_desktop_config.json(Claude Desktop)、~/.cursor/mcp.json(Cursor)或任何其他MCP兼容客户端:

{

"mcpServers": {

"mate-tools": {

"command": "npx",

"args": ["-y", "@mate-tools/mcp-server"]

}

}

}