Install
openclaw skills install @thcjp/volcengine-network-dnsopenclaw skills install @thcjp/volcengine-network-dns核心功能: 本技能提供中文交互、时使用、化工作流场景等能力。
# Volcengine Network DNS
## Overview
Volcengine Network DNS is a powerful tool designed for managing DNS records within Volcengine networking services. It enables users to perform a variety of operations, including querying and updating zone records, which is crucial for maintaining a robust and efficient network infrastructure.
## Paid Features
| Feature | Free Edition | Paid Edition |
|---------|--------------|--------------|
| Basic Functions | Supported | Supported |
| Volcengine Network DNS Record Management | Not Supported | Supported |
| Volcengine Network Zone Record Query | Not Supported | Supported |
| Multi-Tenancy Management and Permission Assignment | Not Supported | Supported |
| Operation Audit and Compliance Logs | Not Supported | Supported |
| Customizable Dashboards and Reports | Not Supported | Supported |
## Core Capabilities
- **DNS Record Management**: Efficiently manage DNS records within Volcengine networking services.
- **Zone Record Query/Update**: Perform queries and updates on zone records as needed.
## Getting Started
1. **Verify Prerequisites**: Ensure that the environment meets the requirements outlined in the Dependencies section.
2. **Invoke the Skill**: In the AI Agent conversation, call the skill with the necessary input parameters.
3. **Review Output**: Check the output results and proceed with further actions as required.
> Detailed input and output formats can be found in the respective sections below.
## Use Cases
| Scenario | Input | Output |
|----------|-------|--------|
| Network Configuration | Network name and subnet parameters | Network ID and connectivity status |
| DNS Query | Domain and record type | Resolved record and TTL information |
| Information Query | Query criteria and keywords | Query results and matching records |
**Not Applicable**: Complex decision scenarios requiring human judgment.
## Usage Workflow
2. **Select Appropriate Usage Method**: Choose the appropriate method the applicable scenario.
3. **Execute Operations**: Perform the operation and check the output results.
4. **Handle Errors**: Refer to the Error Handling section if errors occur.
## Input Format
| Parameter Name | Type | Required | Description |
|----------------|------|----------|-------------|
| instruction | string | Yes | User instruction text |
| context | string | No | Contextual information |
## Output Format
```json
{
"success": true,
"data": {
"result": "dns related configuration parameters",
"result": "dns related configuration parameters"
},
"error": null
}
| Error Scenario | Reason | Solution |
|---|---|---|
| Configuration Error | Missing or incorrect parameters | Check the configuration requirements in the Dependencies section |
| Runtime Error | Inadequate runtime environment | Confirm that the runtime environment meets the requirements specified in the Dependencies section |
| Network Error | Connection timeout or unreachability | Check network connections |
| Dependency | Type | Required | Acquisition Method |
|---|---|---|---|
| LLM API | API | Required | Provided by the integrated LLM of the Agent |
API_KEY environment variable:export API_KEY="${API_KEY:?请设置环境变量}"
Restart the session or open a new terminal for the configuration to take effect. Store the API key securely and avoid exposing it to version control systems.
| Error Scenario (Continued) | Reason | Solution |
|---|---|---|
| LLM Response Timeout or No Response | Network latency or high model load | Retry the request; confirm that the LLM service of the Agent platform is functioning normally |
| Incorrect Input Format | User input does not match the skill's expected format | Check that the input conforms to the format requirements specified in the usage instructions, refer to the examples section |
| Discrepancy between Execution Results and Expectations | Insufficient clarity in instruction descriptions or insufficient context | Provide more detailed instruction descriptions and supplement necessary context information |
| Command Execution Failure | Inadequate runtime environment or insufficient permissions | Confirm that the runtime environment meets the requirements specified in the Dependencies section; check command permission settings |
Follow the usage workflow section, configure the environment and parameters as per the instructions, and you can start using it. It is recommended to read the Dependencies section for the first time to ensure that the environment is ready.
Refer to the Error Handling section and find the corresponding solution the error scenario. If the error handling section does not cover it, collect error information and understand the skill's ability boundaries in the Known Limitations section.
A: 在Volcengine Network DNS中添加新的DNS记录,您需要登录到Volcengine控制台,选择相应的网络服务,然后在DNS管理页面中点击“添加记录”。您需要填写记录类型(如A、CNAME等)、主机记录、记录值(如IP地址或域名)、TTL(生存时间)等信息,并保存设置。
A: Volcengine Network DNS支持多种类型的DNS记录,包括A记录(将域名指向IP地址)、CNAME记录(将域名指向另一个域名)、MX记录(指定邮件交换服务器)、TXT记录(存储文本信息)、NS记录(指定域名服务器)等。
A: 更新DNS记录后,通常需要几分钟到几小时才能在互联网上生效,具体时间取决于DNS服务器的缓存刷新时间(TTL)。默认情况下,Volcengine Network DNS的TTL设置为300秒(5分钟),但您可以根据需要调整。
A: 在删除DNS记录之前,请确保该记录不是必需的,因为删除记录可能会导致服务中断或无法访问。删除记录后,该记录的值将不再指向任何资源,因此请确认您不再需要该记录。删除操作是不可逆的,一旦执行,记录将立即从DNS中移除。
A: 在Volcengine Network DNS中,您可以通过设置不同的DNS记录和它们的TTL来间接控制解析优先级。通常,您可以将TTL设置得更低的记录(如A记录)放在前面,而将TTL设置得更高的记录(如CNAME记录)放在后面,这样在DNS解析时,更可能优先使用TTL较低的记录。
Manual Operation: Manually managing DNS records requires frequent login to servers or the use of command-line tools, which is complex and prone to errors. Volcengine Network DNS 2 provides a centralized management interface and API interfaces, allowing users to quickly complete DNS record queries and updates with simple operations or programming methods, greatly simplifying the operation process and reducing the risk of human errors.
Other DNS Management Tools: Some third-party DNS management tools are available on the market, which are rich in features but usually require additional installation and configuration, and are expensive. Volcengine Network DNS 2 is part of Volcengine networking services and does not require additional installation, directly integrated into the Volcengine console, with lower cost of use and seamless integration with other Volcengine services.
General Methods: Some general methods like using scripts to automate DNS management can save time, but they require writing and maintaining scripts, which are high barriers for non-technical personnel. Volcengine Network DNS 2 provides a visual operation interface and rich API interfaces, reducing technical barriers and allowing more users to easily use it.
Multi-Tenancy Management and Permission Assignment: Volcengine Network DNS 2 supports multi-tenancy management, allowing administrators to assign different permissions to different users, effectively protecting data security and improving management efficiency.
Operation Audit and Compliance Logs: All operations are recorded in logs, making it easy for users to perform audits and compliance checks, ensuring the traceability of operations.
Customizable Dashboards and Reports: Users can customize dashboards and reports according to their own needs, and monitor the running status of DNS services in real time.
Integration with Other Volcengine Services: Volcengine Network DNS 2 is seamlessly integrated with other Volcengine services such as cloud servers and load balancers, making it convenient for users to perform overall network management.
Rich API Interfaces: Provides rich API interfaces, supporting automated operations, convenient for users to perform secondary development and integration.
Using Volcengine Network DNS 2, users can save about 50% of time on DNS record queries and updates, and reduce 80% of manual errors.
Cloud DNS Management: Volcengine Network DNS 2 can easily manage DNS records of cloud servers, improving the availability and reliability of cloud services.
Domain Name Resolution Optimization: By using Volcengine Network DNS 2, users can optimize domain name resolution performance and improve website access speed.
Mobile Application DNS Management: Volcengine Network DNS 2 can easily manage DNS records of mobile applications, ensuring the normal operation of applications on various platforms.
DNS Record Management:
Zone Record Query:
Multi-Tenancy Management and Permission Assignment:
Operation Audit and Compliance Logs:
Customizable Dashboards and Reports:
Volcengine Network DNS 2 adopts a microservices architecture, with core algorithms including DNS resolution, record management, permission control, and log recording. The DNS resolution module is responsible for resolving user input domains and forwarding requests to the corresponding backend services; the record management module is responsible for handling the creation, update, and deletion of DNS records; the permission control module is responsible for managing the access permissions of different users; and the log recording module is responsible for recording all operation logs.
The following table describes the main parameters of Volcengine Network DNS 2 and their explanations:
| Parameter Name | Type | Range | Default Value | Description |
|---|---|---|---|---|
| domain | string | - | - | The domain to be operated |
| recordType | string | A, CNAME, MX, etc. | - | DNS record type, such as A, CNAME, MX, etc. |
| recordValue | string | - | - | DNS record value, such as IP address, hostname, etc. |
| ttl | int | 1-86400 | 86400 | DNS record time to live, in seconds |
| userId | string | - | - | User ID, used for permission control |
| operation | string | create, update, delete | - | Operation type, such as create (create), update (update), delete (delete) |
The following table describes the main return values of Volcengine Network DNS 2 and their data structures:
{
"success": true,
"data": {
"result": "Operation successful",
"records": [
{
"domain": "example.com",
"recordType": "A",
"recordValue": "192.168.1.1",
"ttl": 86400
}
]
},
"error": null
}
The following are code examples for Volcengine Network DNS 2:
Example 1: Query DNS Record
import requests
url = "https://api.volcengine.com/dns/v1"
params = {
"recordType": "A"
}
response = requests.get(url, params=params)
print(response.json())
Example 2: Create DNS Record
import requests
url = "https://api.volcengine.com/dns/v1"
data = {
"recordType": "A",
"ttl": 86400
}
response = requests.post(url, json=data)
print(response.json())
Example 3: Update DNS Record
import requests
url = "https://api.volcengine.com/dns/v1"
data = {
"recordType": "A",
"ttl": 86400
}
response = requests.put(url, json=data)
print(response.json())
| 操作步骤 | 手动耗时 | 自动化耗时 | 时间节约 | 准确率提升 |
|---|---|---|---|---|
| 查询DNS记录 | 15分钟 | 2分钟 | 13分钟 | 10% |
| 更新DNS记录 | 20分钟 | 3分钟 | 17分钟 | 5% |
| 批量查询DNS记录 | 30分钟 | 5分钟 | 25分钟 | 15% |
| 批量更新DNS记录 | 45分钟 | 8分钟 | 37分钟 | 8% |
| DNS记录同步 | 60分钟 | 10分钟 | 50分钟 | 12% |
| 对比维度 | 本技能 | 手动操作 | Python脚本 | 专业软件 |
|---|---|---|---|---|
| 易用性 | 高 | 低 | 中 | 高 |
| 速度 | 高 | 低 | 中 | 高 |
| 功能丰富性 | 中 | 低 | 高 | 高 |
| 成本 | 低 | 中 | 中 | 高 |
| 支持的记录类型 | 多种 | 少 | 多种 | 多种 |
| 痛点 | 描述 | 影响范围 | 解决方案 | 量化效果 |
|---|---|---|---|---|
| DNS记录维护效率低 | 手动维护DNS记录耗时,易出错 | 网络配置调整和故障修复效率低 | 使用自动化工具进行DNS记录管理 | 每次操作节省10-15分钟 |
| DNS记录更新不及时 | DNS记录更新不及时,可能导致服务中断 | 网络服务质量下降 | 实现DNS记录自动更新功能 | 平均提升网络服务稳定性10% |
| DNS记录查询复杂 | DNS记录查询需要多次操作,耗时 | 网络管理人员工作效率低 | 提供简洁的DNS记录查询接口 | 每次查询节省5分钟 |
| 错误现象 | 可能原因 | 诊断步骤 | 解决方案 |
|---|---|---|---|
| DNS查询失败 | DNS服务器配置错误 | 检查DNS服务器配置 | 修正配置并重新启动DNS服务器 |
| DNS更新失败 | 权限不足或配置错误 | 确认操作权限和记录配置 | 修正权限和配置并尝试重新更新 |
| DNS解析错误 | DNS记录配置错误 | 检查DNS记录配置 | 修正配置并重新解析 |
| DNS服务器无响应 | 服务器故障或网络连接问题 | 检查服务器状态和网络连接 | 修复服务器故障或检查网络连接 |
| DNS性能下降 | DNS记录过多或服务器性能不足 | 优化DNS记录或升级服务器 | 优化记录或升级服务器硬件 |
| 风险项 | 等级 | 防护措施 | 验证方法 |
|---|---|---|---|
| API密钥泄露 | 高 | 通过环境变量配置,禁止硬编码 | 定期检查代码和配置文件 |
| 命令执行风险 | 高 | 仅执行白名单命令,避免拼接用户输入 | 使用沙箱环境测试 |
| 网络通信安全 | 中 | 使用HTTPS协议,验证SSL证书 | 定期检查证书有效期 |
| 敏感数据暴露 | 高 | 输出结果中不包含密钥、令牌等敏感信息 | 日志脱敏审查 |
| 未授权访问 | 中 | 限制访问权限,实施认证机制 | 定期审计访问日志 |
| 问题 | 回答 |
|---|---|
| 如何在火山引擎网络中添加新的DNS记录? | 通过火山引擎网络DNS管理界面或API,输入域名、记录类型(如A、CNAME)、记录值和TTL,即可添加新的DNS记录。 |
| DNS记录更新失败,可能是什么原因? | DNS记录更新失败可能是因为输入参数错误、网络连接问题或权限不足。请检查输入参数、网络连接和权限设置。 |
| 如何查询特定域名的DNS记录? | 在火山引擎网络DNS管理界面或API中,输入域名,即可查询该域名的DNS记录,包括记录类型、记录值和TTL等信息。 |
| 火山引擎网络DNS支持哪些记录类型? | 火山引擎网络DNS支持A、CNAME、MX、TXT、NS等多种常见的DNS记录类型。 |
| 如何管理多个域名的DNS记录? | 火山引擎网络DNS支持批量管理多个域名的DNS记录,您可以在管理界面中同时操作多个域名,提高管理效率。 |
| 功能 | 解决痛点 | 专业版能力 |
|---|---|---|
| DNS记录管理 | 手动管理DNS记录复杂且易出错,影响网络服务可用性。 | 提供自动化记录管理功能,支持批量操作,提高管理效率和准确性。 |
| DNS记录查询 | 查询DNS记录需要多次登录服务器,效率低下。 | 提供API接口,支持自动化查询,快速获取所需信息。 |
| DNS记录更新 | 更新DNS记录需要手动操作,容易出错。 | 提供自动化更新功能,支持定时任务,确保DNS记录的实时性。 |