Files
tldr/pages.zh/common/cli53.md

36 lines
914 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cli53
> 亚马逊 Route 53 的命令行工具。
> 更多信息:<https://github.com/barnybug/cli53>。
- 列出域名:
`cli53 list`
- 创建一个域名:
`cli53 create {{mydomain.com}} --comment "{{comment}}"`
- 导出绑定区域文件到 `stdout`
`cli53 export {{mydomain.com}}`
- 创建一个指向同一区域中相对记录的 `www` 子域名:
`cli53 {{rc|rrcreate}} {{mydomain.com}} {{'www 300 CNAME lb'}}`
- 创建一个指向外部地址的 `www` 子域名(必须以点结尾):
`cli53 {{rc|rrcreate}} {{mydomain.com}} {{'www 300 CNAME lb.externalhost.com.'}}`
- 创建一个指向 IP 地址的 `www` 子域名:
`cli53 {{rc|rrcreate}} {{mydomain.com}} {{'www 300 A 150.130.110.1'}}`
- 替换指向不同 IP 的 `www` 子域名:
`cli53 {{rc|rrcreate}} --replace {{'www 300 A 150.130.110.2'}}`
- 删除 A 记录:
`cli53 {{rd|rrdelete}} {{mydomain.com}} {{www}} {{A}}`