- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Public Zones
- Private Zones
- Record Sets
- PTR Records
- Intelligent Resolution
- Resolver
- Permissions Management
- Using CTS to Collect DNS Key Operations
- Access Logging
- Quota Adjustment
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- APIs
- Examples
- Permissions Policies and Supported Actions
- Appendix
- SDK Reference
-
FAQs
-
DNS Overview
- Will I Be Billed for the DNS Service?
- How Many Zones, PTR Records, and Record Sets Can I Create?
- What Are Huawei Cloud DNS Servers?
- What Are Huawei Cloud Private DNS Server Addresses?
- What Are the Differences Between Public and Private Domain Names?
- Does DNS Support IPv6?
- Does DNS Support Explicit Forwarding and Implicit Forwarding?
- Does DNS Support Dynamic Domain Name Resolution?
- Does DNS Support Wildcard Entries?
- What Is TTL?
- How Many Domain Name Levels Does DNS Support?
- How Are Zones Queried to Resolve a Domain Name?
- What Are the Priorities of Resolution Lines?
- Why Was the Email Address Format Changed in the SOA Record?
- What Is CAA?
- Why Should I Set Priority For an MX Record Set?
- Can DNS Point a Domain Name to a Specific Port?
- Invalid Domain Resolution
- Website Access Failures
-
Public Zones
- Why Is a Message Indicating Conflict with an Existing Record Set Displayed When I Add a Record Set?
- How Do I Handle the Conflict Between CNAME and MX Record Sets?
- How Do I Add Record Sets to Subdomains?
- Which IP Address Is Returned for the Domain Name If There Are Multiple IP Addresses in a Record Set?
- Can I Modify a Zone?
- Can DNS Translate a Domain Name to IP Addresses of On-premises Servers or Third-Party Servers?
- How Can Multiple Domain Names Be Linked to the Same Website?
- Configuring Weighted Routing
- Can DNS Resolve a Domain Name that Has Not Been Licensed?
- Does DNS Support Dynamic Domain Name Resolution?
- How Do I Change the DNS Servers of a Domain Name?
- How Do I Handle Inaccurate Scheduling Caused by the CNAME Record Set Cache in the Default Lines?
-
Private Zones
- Why Is a Message Indicating Conflict with an Existing Record Set Displayed When I Add a Record Set?
- How Do I Change Default DNS Servers of an ECS to Huawei Cloud Private DNS Servers?
- How Can I Access an ECS Using Its Host Name?
- How Can I Map the Private IP Address of an ECS to a Domain Name?
- How Can I Use a Private Domain Name to Route Internet Traffic?
- Can I Use Private Domain Names Across Regions?
- Do I Need to Register Private Domain Names?
- Will a Deleted VPC Be Automatically Disassociated from the Private Zone?
- Are Private DNS Server Addresses the Same for All Users?
- What Are the Restrictions on Concurrent Private DNS Queries?
- Reverse Resolution
- Domain Transfer
-
DNS Overview
- Videos
-
More Documents
-
User Guide (ME-Abu Dhabi Region)
- Overview
- Getting Started
- Private Zone
- Record Set
- PTR Record
- Permissions Management
- Key Operations Recorded by CTS
- Quota Adjustment
- FAQs
- Change History
- API Reference (ME-Abu Dhabi Region)
-
User Guide (Paris Region)
- Overview
- Getting Started
- Public Zones
- Private Zones
- Record Sets
- PTR Records
- Intelligent Resolution
- Permissions Management
- Key Operations Recorded by CTS
- Quota Adjustment
-
FAQ
-
DNS Overview
- Will I Be Billed for the DNS Service?
- How Many Zones, PTR Records, and Record Sets Can I Create?
- What Are DNS Servers?
- What Are the Differences Between Public and Private Domain Names?
- Does DNS Support IPv6?
- Does DNS Support Explicit and Implicit URLs?
- Does DNS Support Dynamic Domain Name Resolution?
- Does DNS Support Wildcard Entries?
- What Is TTL?
- How Many Domain Name Levels Does DNS Support?
- How Are Zones Queried to Resolve a Domain Name?
- Why Was the Email Address Format Changed in the SOA Record?
- What Is CAA?
- Why Should I Set Priority For an MX Record Set?
- Can DNS Point a Domain Name to a Specific Port?
-
Public Zones
- How Do I Add Record Sets to Subdomains?
- Which IP Address Is Returned for the Domain Name If There Are Multiple IP Addresses in a Record Set?
- What Can I Do If There Is Message Indicating that the Public Zone Already Exists?
- Can I Modify a Zone?
- How Can Multiple Domain Names Be Linked to the Same Website?
- Configuring Weighted Routing
-
Private Zones
- How Can I Map the Private IP Address of an ECS to a Domain Name?
- Can I Use Private Domain Names Across Regions?
- Do I Need to Register Private Domain Names?
- Will a Deleted VPC Be Automatically Disassociated from the Private Zone?
- Are Private DNS Server Addresses the Same for All Users?
- What Are the Restrictions on Concurrent Private DNS Requests?
- Reverse Resolution
-
DNS Overview
- Change History
- API Reference (Paris Region)
-
User Guide (Kuala Lumpur Region)
- Overview
- Getting Started
- Private Zone
- Record Set
- Permissions Management
- Key Operations Recorded by CTS
- Quota Adjustment
-
FAQs
-
DNS Overview
- Will I Be Billed for the DNS Service?
- How Many Zones and Record Sets Can I Create?
- What Are the Private DNS Servers Provided by the DNS Service?
- Does DNS Support Wildcard Entries?
- How Are Zones Queried to Resolve a Domain Name?
- Why Was the Email Address Format Changed in the SOA Record?
- Can DNS Point a Domain Name to a Specific Port?
- Private Zones
-
DNS Overview
- Change History
- API Reference (Kuala Lumpur Region)
- User Guide (Ankara Region)
- API Reference (Ankara Region)
-
User Guide (ME-Abu Dhabi Region)
- Glossary
- General Reference
Copied.
Access Logging
Scenarios
The requests sent to DNS Resolver are logged in detail, such as the time when a request was sent, client IP address, request path, and server response.
Constraints
LTS is a regional service. You can only enable access logging for the DNS service in the following regions: CN Southwest-Guiyang1, AP-Jakarta, AP-Singapore, AF-Johannesburg, TR-Istanbul, and LA-Sao Paulo1.
To enable access logging, you need to interconnect DNS with LTS and create a log group and a log stream on the LTS console. For details, see the Log Tank Service User Guide.
Configuring LTS
- Create a log group.
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- In the upper left corner of the page, click
and choose Management & Governance > Log Tank Service.
- In the navigation pane on the left, choose Log Management.
- Click Create Log Group. In the displayed dialog box, enter a name for the log group.
Set Log Retention Duration as needed.
- Confirm the settings and click OK.
- Create a log stream.
- On the LTS console, click
on the left of the target log group.
- Click Create Log Stream. In the displayed dialog box, enter a name for the log stream.
- Select an enterprise project as needed.
- Confirm the settings and click OK.
- On the LTS console, click
Configuring Access Logging
- Go to the Resolvers page.
- Click
in the upper left corner and select the desired region and project.
- Click the Access Logs tab.
- Click Configure Access Logging.
- Configure the parameters, such as Log Group, Log Stream, and VPC, as prompted.
- Click OK.
Viewing Access Logs
- Go to the Resolvers page.
- Click
in the upper left corner and select the desired region and project.
- Click the Access Logs tab.
- In the access log list, locate the target access log and click View Log Details.
On the displayed page, view the information about the log group and log stream.
- Click the name of the log stream and view its details.
The following is an example log. For details about the fields in the log, see Table 1. The log format cannot be modified.
{ "content": "2024-07-02 09:28:00.304 baidu.com. A NOERROR TCP cnsouthwest2d _ 192.168.0.138 c1e159ce-ac25-4908-8e31-8ff73ad2f57d", "_resource_id": "c1e159ce-ac25-4908-8e31-8ff73ad2f57d", "_resource_name": "c1e159ce-ac25-4908-8e31-8ff73ad2f57d", "_service_type": "DNS", "category": "LTS", "collectTime": 1719883683977 }
Table 1 Fields in a DNS Resolver access log Field
Description
Value Description
Example Value
content
DNS Resolver access logs
String
2024-07-02 09:28:00.304 baidu.com. A NOERROR TCP cnsouthwest2d _ 192.168.0.138 c1e159ce-ac25-4908-8e31-8ff73ad2f57d
_resource_id
Resource ID
UUID
95c2b814-99dc-939a-e811-ae84c61ea9ee
_resource_name
Resource name
Name of the resource specified by the resource ID
95c2b814-99dc-939a-e811-ae84c61ea9ee
_service_type
Service for which access logs are collected
Fixed value: DNS
DNS
category
Log category
Fixed value: LTS
LTS
collectTime
LTS log collection time
Integer
1704158708902
Configuring Log Transfer
If you want to analyze access logs later, transfer the logs to OBS for storage.
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- In the upper left corner of the page, click
and choose Management & Governance > Log Tank Service.
- In the navigation pane on the left, choose Log Transfer.
- In the upper right corner of the Log Transfer page, click Configure Log Transfer.
Figure 1 Configuring log transfer
- Configure the parameters. For details, see the Log Tank Service User Guide.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot