在Apigee中是否有针对DNS查询的策略?

时间:2014-04-18 18:23:10

标签: dns apigee

是否有支持Apigee DNS查询的策略?我已经阅读了文档和教程,但没有找到解决方案。

2 个答案:

答案 0 :(得分:4)

您可以对statdns.com进行标注并获取JSON有效负载:

http://api.statdns.com/{domain name}/a

例如:

http://api.statdns.com/apigee.com/a

{
"question": [
    {
        "name": "apigee.com.",
        "type": "A",
        "class": "IN"
    }
],
"answer": [
    {
        "name": "apigee.com.",
        "type": "A",
        "class": "IN",
        "ttl": 60,
        "rdlength": 4,
        "rdata": "184.72.221.111"
    }
],
"authority": [
    {
        "name": "apigee.com.",
        "type": "NS",
        "class": "IN",
        "ttl": 86400,
        "rdlength": 20,
        "rdata": "ns3.p25.dynect.net."
    },
    {
        "name": "apigee.com.",
        "type": "NS",
        "class": "IN",
        "ttl": 86400,
        "rdlength": 6,
        "rdata": "ns4.p25.dynect.net."
    },
    {
        "name": "apigee.com.",
        "type": "NS",
        "class": "IN",
        "ttl": 86400,
        "rdlength": 6,
        "rdata": "ns1.p25.dynect.net."
    },
    {
        "name": "apigee.com.",
        "type": "NS",
        "class": "IN",
        "ttl": 86400,
        "rdlength": 6,
        "rdata": "ns2.p25.dynect.net."
    }
  ]
}

答案 1 :(得分:1)

没有简单执行DNS查找的策略。在Apigee的付费版本中,这可以使用简单的JavaCallout构建。