Global Traffic Manager query logs
Overview
To check whether the domain name resolution scheduling of Global Traffic Manager (GTM) works as expected, view information such as the source IP address, queried domain name, resolution result, and response status in the query logs.
This feature is available only for access domain names that have DNS traffic analysis enabled. To view query logs, enable the feature as described in Enable, disable, or configure DNS traffic analysis.
View query logs
Go to the Alibaba Cloud DNS-Logs page.
Click the Query Logs tab. In the left navigation pane, select Global Traffic Manager.
The list displays the details of GTM query logs. For the meaning of each field, see Query log fields below.
Time-based query: Filter logs by a pre-defined or custom time range. Logs from the last 180 days can be queried.
NoteIf the query returns too many logs, repeat the query multiple times. Logs are returned in batches.
Keyword-based query: Query the logs by keywords such as the zone name, source IP address, resolution result, DNS server IP address, record type, and response status.
Query log fields
Query Time: The time when the authoritative DNS server received the query.
Response Time: The time when the authoritative DNS server responded to the query.
Resolution Delay (ms): The overall latency from when the DNS server receives the domain name query to when it returns the resolution response.
Source IP Address: The egress IP address of the device that sends the DNS request to the authoritative DNS server. This is typically the egress IP address of the ISP's local recursive DNS server.
ECS Client Subnet IP: A local DNS server (LocalDNS) that supports the EDNS Client Subnet (ECS) protocol converts the client source IP address to protect privacy and places it in the ECS protocol extension. The authoritative DNS server then uses the client source IP address included in the extension for more accurate scheduling.
Query Zone Name: The target domain name queried in the DNS request.
Query Record Types: The DNS record type of the query, such as A, AAAA, and CNAME.
Query Flag: The flags in the DNS query packet header. Multiple flags are separated by spaces. A hyphen (-) indicates that no flag is set.
Flag | Description |
RD (Recursion Desired) | Indicates that the client wants the DNS server to resolve the query recursively. The client sets this flag in the query request that it sends to the DNS server. |
CD (Checking Disabled) | When Domain Name System Security Extensions (DNSSEC) is enabled, this flag indicates that the client requests the resolver not to perform DNSSEC validation. |
Response Flag: The flags in the DNS response packet header. Multiple flags are separated by spaces.
Flag | Description |
AA (Authoritative Answer) | Indicates that the response comes from the authoritative DNS server of the domain name. Otherwise, the response is a cached response or a response from another non-authoritative DNS server. |
TC (Truncation) | Indicates that the response packet was truncated because it was too long. |
RA (Recursion Available) | Indicates that the DNS server supports recursive queries. |
AD (Authenticated Data) | Indicates that the returned data has been authenticated. This flag is used in DNSSEC environments. |
RD (Recursion Desired) | Echoes back the value of the RD flag in the request packet, indicating that the client wants the DNS server to resolve the query recursively. |
QR (Query/Response) | Indicates whether a packet is a query request or a response. The presence of the QR flag indicates that the packet is a response. |
Resolution Result: The domain name resolution result.
Response Status: Common statuses include the following:
Status | Description |
NOERROR | The DNS resolution succeeded. |
NXDOMAIN | The queried domain name does not exist. |
NXRRSET | The queried record type does not exist for the domain name. |
Query logs may contain entries with the NXRRSET status. In RFC specifications, this status indicates that the corresponding DNS record does not exist during a DNS record update operation. In Alibaba Cloud DNS traffic analysis scenarios, NXRRSET indicates that the queried domain name exists but no DNS record of the queried type exists. This helps you distinguish response statuses at a finer granularity.
For example, in a dual-stack (IPv4 and IPv6) environment, many users configure only A records for their domain names, while clients request both A and AAAA records. As a result, the AAAA request returns NXRRSET, while the A request returns the correct result. Therefore, an NXRRSET status does not necessarily indicate a resolution error. Check whether a DNS record of this type is configured.
DNS Server IP Address: The IP address of the authoritative server that responded to the DNS query.