rebind解析
1、 1.1.1.1.2.2.2.2.1.dns.com即为rebind,第一次解析为1.1.1.1,第二次解析为2.2.2.2 上一次访问的ip,下一次同c段的地址都会返回rebind结果
2、 通过配置解析处进行配置
自定义解析IP
1、 通过域名8.8.8.8.1.dns.com即解析为8.8.8.8
2、 通过配置解析处进行配置
3、 优先按照域名匹配进行处理,即数据库中存储8.8.8.8.1.dns.com指向1.1.1.1,实际请求结果仍然会返回8.8.8.8,rebind记录也是一样
dnslog查询接口
http://xxx.xx/api/dnslog/search?token={apiKey}&keyword={test}
keyword参数值必须是完整除去logAdress后的部分,此处没有模糊查询,如aaaaaa.1.dnslog.com对应keyword=aaaaaa,返回数据格式样例如下:
 
]
  {
    "ip": "localhost",
    "host": "test1.1.dns.xxxx.com",
    "time": "2019-07-30 15:25:14.0",
    "type": "A(1)"
  }
]
weblog查询接口
http://xxx.xx/api/weblog/search?token={apiKey}&keyword={test}
keyword要求同上,返回数据格式样例如下:
 
[
  {
    "path": "/",
    "method": "POST",
    "data": "",
    "ip": "10.10.37.75",
    "host": "test.1.dns.xxxx.com",
    "header": "{\"content-length\":\"22896\",\"postman-token\":\"9575b873-ccd9-4d5b-ba8a-c1f746e40086\",\"host\":\"test.1.dns.xxxx.com\",\"content-type\":\"text/plain\",\"connection\":\"keep-alive\",\"cache-control\":\"no-cache\",\"accept-encoding\":\"gzip, deflate\",\"user-agent\":\"PostmanRuntime/7.13.0\",\"accept\":\"*/*\"}",
    "time": "2019-07-23 17:50:10.0",
    "params": null,
    "version": "HTTP/1.1"
  }
]