Private Zone query logs

Updated at:

Important

The system provides detailed query logs only for DNS queries and responses directly initiated by ECS instances, containers, and other clients in VPCs with traffic analysis enabled. For details, see Manage traffic analysis.

View query logs

  1. Go to the Alibaba Cloud DNS-Logs page.

  2. On the Query Logs tab, choose Private Zone > Private Zone.

    The list displays the details of Private Zone query logs. For the meaning of each field, see Query log fields below.

  3. Time-based query: Filter logs by a pre-defined or custom time range. Logs from the last 180 days can be queried.

    Note

    If 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 Private Zone service received the query.

Response Time: The time when the Private Zone service 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 response.

Source IP Address: The private IP address, within the VPC, of the client (such as an ECS instance or container) that initiated the DNS query.

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, CNAME, TXT, and MX.

Query Flag: The flags in the DNS query packet header. Multiple flags are separated by spaces. A - 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.

Important

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.

Region: The region of the VPC in which the DNS query was initiated.

VPC ID: The ID of the VPC in which the DNS query was initiated.

DNS Server IP Address: The address of the Private Zone service that responded to the DNS query.