# Cpanel Domain

> Thêm và quản lý domain trên gói hosting cPanel — addon domain, subdomain, document root. Dùng khi người dùng cần thêm tên miền mới vào hosting, tạo subdomain, trỏ domain tới thư mục, hoặc liệt kê các domain đang có.

- **Type:** Skill
- **Install:** `agentstack add skill-azdigi-official-hosting-ai-skills-cpanel-domain`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [azdigi-official](https://agentstack.voostack.com/s/azdigi-official)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [azdigi-official](https://github.com/azdigi-official)
- **Source:** https://github.com/azdigi-official/hosting_ai_skills/tree/main/skills/cpanel-domain

## Install

```sh
agentstack add skill-azdigi-official-hosting-ai-skills-cpanel-domain
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# cPanel — Quản lý Domain

Quản lý domain, addon domain và subdomain qua `bin/cpanel`.

## Liệt kê domain hiện có

```bash
cpanel domain:list
```

Trả về domain chính (main), addon, subdomain (sub) và parked — luôn chạy trước khi
thêm mới để tránh trùng và để biết domain gốc dùng cho subdomain.

## Thêm subdomain

```bash
# blog.example.com  với document root mặc định
cpanel subdomain:add blog example.com

# chỉ định document root tùy ý
cpanel subdomain:add blog example.com public_html/blog
```

## Thêm addon domain (tên miền hoàn toàn mới)

```bash
# tự suy ra subdomain & docroot
cpanel addon:add newsite.com

# chỉ định rõ subdomain nội bộ và document root
cpanel addon:add newsite.com newsite public_html/newsite.com
```

> Addon domain trên cPanel hiện đại có thể được quản lý qua giao diện "Domains" mới.
> Lệnh `addon:add` dùng API2 `AddonDomain::addaddondomain` (tương thích rộng). Nếu
> server trả lỗi "feature disabled", kiểm tra gói hosting có cho phép addon domain không.

## DNS & thao tác nâng cao (escape hatch)

Các tác vụ DNS dùng trực tiếp UAPI — ví dụ:

```bash
# Liệt kê bản ghi DNS của một zone
cpanel uapi DNS parse_zone zone=example.com

# Thêm bản ghi (tham khảo tài liệu UAPI DNS::mass_edit_zone)
```

Tra cứu hàm tại https://api.docs.cpanel.net/ (module **DNS**, **DomainInfo**, **SubDomain**).

## An toàn

- Chạy `domain:list` trước khi thêm để tránh trùng.
- Xóa domain/subdomain là thao tác phá hủy (mất cấu hình vhost). Engine chặn nếu thiếu
  xác nhận; sau khi người dùng đồng ý, chạy lại kèm `--yes` (vd `cpanel subdomain:delete blog example.com --yes`).
- Sau khi thêm domain, nhắc người dùng trỏ DNS/nameserver nếu domain đăng ký ở nơi khác.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [azdigi-official](https://github.com/azdigi-official)
- **Source:** [azdigi-official/hosting_ai_skills](https://github.com/azdigi-official/hosting_ai_skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-azdigi-official-hosting-ai-skills-cpanel-domain
- Seller: https://agentstack.voostack.com/s/azdigi-official
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
