All Products
Search
Document Center

:DescribeInternetDnsLogs

Last Updated:Apr 21, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alidns:DescribeInternetDnsLogsget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

Return value language, options:

  • zh: Chinese
  • en: English

Default: en

en
StartTimestamplongNo

The start time of the query (timestamp, unit: milliseconds).

1709192640000
EndTimestamplongNo

The end time of the query (timestamp, unit: milliseconds).

Warning If the query time span is too large and the amount of resolution logs for the queried domain is excessive, it may lead to a query timeout or inaccurate query results.

1709196299999
PageSizeintegerNo

Page size for query.

10
PageNumberintegerNo

Page number, default value is 1.

1
ModulestringNo

Module type

  • AUTHORITY (default): Public Authoritative DNS
  • RECURSION: Public Recursive DNS
AUTHORITY
QueryConditionstringNo

Query parameters

  • sourceIp: Source IP address
  • queryNameFuzzy: Domain name (fuzzy value)
  • queryType: Record type
  • value: Resolution result
  • status: Status
  • serverIp: Resolution server IP
{"sourceIp":"59.82.XX.XX","queryType":"A"}
DomainNamestringNo

The domain name.

example.com
AccountIdlongNo

The account ID displayed on the Recursive Resolution (Public DNS) page after you activate Alibaba Cloud Public DNS.

51**4

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

Unique request identifier.

536E9CAD-DB30-4647-AC87-AA5CC38C5382
Completeboolean

Indicates whether the log query is precise.

true
Logsarray<object>

The queried logs.

Logobject

The log.

DnsMsgIdstring

Parse log ID (can be duplicated).

3583
LogTimelong

Parse timestamp.

1709196249000
ZoneNamestring

The zone name.

example.com
QueryNamestring

The domain name for which you want to query Domain Name System (DNS) records.

example.com
QueryTypestring

Record type.

A
Rtinteger

Parse response time.

0
ServerIpstring

Parse server IP.

140.205.XX.XX
SourceIpstring

Source IP address.

59.82.XX.XX
Statusstring

Response status.

NOERROR
SubnetIpstring

The value set for the edns-client-subnet option.

170.33.XX.XX
Protocolstring

The protocol type of the domain name resolution query request:

  • UDP
  • TCP
  • HTTP
  • HTTPS
  • DOH
UDP
Valuearray

Array of parsing results.

Valuestring

Parsed result.

172.64.XX.XX
PageSizeinteger

Page size for query.

10
CurPageinteger

Current page number.

1
TotalPageinteger

Total number of pages.

5
TotalSizeinteger

Total quantity.

48

Examples

Sample success responses

JSONformat

{
  "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  "Complete": true,
  "Logs": {
    "Log": [
      {
        "DnsMsgId": "3583",
        "LogTime": 1709196249000,
        "ZoneName": "example.com",
        "QueryName": "example.com",
        "QueryType": "A",
        "Rt": 0,
        "ServerIp": "140.205.XX.XX",
        "SourceIp": "59.82.XX.XX",
        "Status": "NOERROR",
        "SubnetIp": "170.33.XX.XX",
        "Protocol": "UDP",
        "Value": {
          "Value": [
            "172.64.XX.XX"
          ]
        }
      }
    ]
  },
  "PageSize": 10,
  "CurPage": 1,
  "TotalPage": 5,
  "TotalSize": 48
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-20The response structure of the API has changedView Change Details
2024-05-22The request parameters of the API has changed. The response structure of the API has changedView Change Details