TopRank Skills

Home / Claw Skills / Autres / alicloud-network-dns-cli
Official OpenClaw rules 15%

alicloud-network-dns-cli

Alibaba Cloud DNS (Alidns) CLI skill. Use to query, add, and update DNS records via aliyun-cli, including CNAME setup for Function Compute custom domains.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 alicloud-network-dns-cli 技能。 若已安装,则直接安装 alicloud-network-dns-cli 技能。

Overview

Skill Key
cinience/alicloud-network-dns-cli
Author
cinience
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/cinience/alicloud-network-dns-cli
Latest Commit SHA
6fbf9ee4afe78d684d600066fe2e2cfb10e9673d

Extracted Content

SKILL.md excerpt

Category: tool

# Alibaba Cloud DNS (Alidns) CLI

## Goals

- Query and manage Alibaba Cloud DNS records via `aliyun-cli`.
- Quickly configure CNAME for Function Compute custom domains.

## When to Use

- When you need to add/update DNS records in Alibaba Cloud DNS.
- When you need CNAME setup for FC custom domains.

## Install aliyun-cli (without sudo)

```bash
curl -fsSL https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz -o /tmp/aliyun-cli.tgz
mkdir -p ~/.local/bin
 tar -xzf /tmp/aliyun-cli.tgz -C /tmp
mv /tmp/aliyun ~/.local/bin/aliyun
chmod +x ~/.local/bin/aliyun
```

## Configure Credentials

```bash
~/.local/bin/aliyun configure set \
  --profile default \
  --access-key-id <AK> \
  --access-key-secret <SK> \
  --region cn-hangzhou
```

Configure region as default; if best region is unclear, ask the user.

## Query DNS Records

Query subdomain records:

```bash
~/.local/bin/aliyun alidns DescribeSubDomainRecords \
  --SubDomain news.example.com
```

## Add CNAME Record

```bash
~/.local/bin/aliyun alidns AddDomainRecord \
  --DomainName example.com \
  --RR news \
  --Type CNAME \
  --Value <TARGET>
```

## FC Custom Domain CNAME Target

Custom domain should point to FC public CNAME:

```
<account_id>.<region_id>.fc.aliyuncs.com
```

Example (Hangzhou):

```
1629965279769872.cn-hangzhou.fc.aliyuncs.com
```

## Common Issues

- If apex CNAME is not supported, use subdomain like `www` or ALIAS/ANAME records.
- Create FC custom domain only after DNS propagation, otherwise `DomainNameNotResolved` may occur.

## References

- aliyun-cli installation
  - https://help.aliyun.com/zh/cli/install-cli-on-linux
- Alidns API(AddDomainRecord / DescribeSubDomainRecords)
  - https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-adddomainrecord
  - https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describesubdomainrecords
- FC custom domain configuration and CNAME guidance
  - https://www.alibabacloud.com/help/en/functioncompute/fc/user-guide/configure-custom-d...

Related Claw Skills