Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cinience avatar

Alicloud Network Dns Cli

  • 270 installs
  • 396 repo stars
  • Updated July 18, 2026
  • cinience/alicloud-skills

alicloud-network-dns-cli is a Cloud & Infrastructure skill that manages Alibaba Cloud DNS zones, records, and network routing from the terminal during incidents, migrations, and day-two infrastructure changes.

About

alicloud-network-dns-cli is a Cloud & Infrastructure skill from cinience/alicloud-skills for managing Alibaba Cloud DNS zones, records, and network routing from the terminal. The skill supports incident response cutovers, migration record updates, and routine day-two DNS changes without leaving the CLI workflow developers already use for infrastructure operations. Developers reach for alicloud-network-dns-cli when they must add, update, or verify DNS records on AliCloud during outages, domain migrations, or routing adjustments that affect production traffic paths.

  • Alibaba Cloud DNS CLI workflows
  • Zone and record lifecycle management
  • Network routing and resolver operations
  • Incident-ready terminal commands
  • Day-two infra change patterns

Alicloud Network Dns Cli by the numbers

  • 270 all-time installs (skills.sh)
  • Ranked #421 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cinience/alicloud-skills --skill alicloud-network-dns-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs270
repo stars396
Last updatedJuly 18, 2026
Repositorycinience/alicloud-skills

How do you manage AliCloud DNS from the CLI?

Manage Alibaba Cloud DNS zones, records, and network routing from the terminal during incidents, migrations, or day-two infrastructure changes.

Who is it for?

Platform and SRE developers handling Alibaba Cloud DNS cutovers, incident routing fixes, or migration record updates from the terminal.

Skip if: Teams managing DNS exclusively through a non-AliCloud provider or a fully GUI-only change-management process.

When should I use this skill?

Changing AliCloud DNS zones or records during an incident, migration, or infrastructure routing update from the command line.

What you get

Updated DNS zone records, verified routing entries, and terminal-driven AliCloud network DNS change logs.

  • updated DNS records
  • zone configuration changes
  • routing verification output

Files

SKILL.mdMarkdownGitHub ↗

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)

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

~/.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:

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

Add CNAME Record

~/.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-domain-names
  • Official source list:references/sources.md

Validation

mkdir -p output/alicloud-network-dns-cli
echo "validation_placeholder" > output/alicloud-network-dns-cli/validate.txt

Pass criteria: command exits 0 and output/alicloud-network-dns-cli/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/alicloud-network-dns-cli/.
  • Include key parameters (region/resource id/time range) in evidence files for reproducibility.

Prerequisites

  • Configure least-privilege Alibaba Cloud credentials before execution.
  • Prefer environment variables: ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, optional ALICLOUD_REGION_ID.
  • If region is unclear, ask the user before running mutating operations.

Workflow

1) Confirm user intent, region, identifiers, and whether the operation is read-only or mutating. 2) Run one minimal read-only query first to verify connectivity and permissions. 3) Execute the target operation with explicit parameters and bounded scope. 4) Verify results and save output/evidence files.

Related skills

FAQ

What does alicloud-network-dns-cli manage?

alicloud-network-dns-cli manages Alibaba Cloud DNS zones, records, and related network routing from the terminal, supporting incident cutovers, migrations, and routine day-two infrastructure DNS changes.

When should operators use alicloud-network-dns-cli?

Operators should use alicloud-network-dns-cli during AliCloud incidents, domain migrations, or routing updates when DNS record changes must be made quickly from a terminal workflow.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.