← 返回命令列表

Linux command

cli53 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all hosted zones

cli53 list

Export DNS records

cli53 export [example.com]

Import DNS records

cli53 import --file [zone.txt] [example.com]

Import with replace

cli53 import --file [zone.txt] --replace [example.com]

Create a new DNS record

cli53 rrcreate [example.com] '[www 300 A 192.0.2.1]'

Create or replace

cli53 rrcreate --replace [example.com] '[www 60 CNAME other.example.com.]'

Delete a DNS record

cli53 rrdelete [example.com] [www] [A]

Create a new hosted zone

cli53 create [example.com]

Purge all records

cli53 rrpurge --confirm [example.com]

说明

cli53 is a command-line tool for managing Amazon Web Services Route 53 DNS service. It provides a straightforward interface for creating, modifying, exporting, and importing DNS records using familiar BIND zone file format. The tool supports the full range of Route 53 record types including A, AAAA, CNAME, MX, TXT, SRV, and alias records. It can export entire zones to BIND format for backup or migration, and import records from zone files for bulk updates. cli53 uses standard AWS credential handling, supporting environment variables, credential files, and IAM roles. It's particularly useful for infrastructure automation, disaster recovery preparation, and migrating DNS records between providers.

参数

list
List all hosted zones in the account.
export _ZONE_
Export zone records in BIND format.
import _ZONE_
Import records from a BIND zone file.
rrcreate _ZONE_ _RECORD_
Create a resource record.
rrdelete _ZONE_ _NAME_ _TYPE_
Delete a resource record.
create _ZONE_
Create a new hosted zone.
delete _ZONE_
Delete a hosted zone.
rrpurge _ZONE_
Delete all records in a zone except NS and SOA.
validate _ZONE_
Validate a BIND zone file.
--file _FILE_
File containing zone records for import or validation.
--replace
Replace existing records during import or rrcreate.
--wait
Wait for changes to propagate before returning.
--confirm
Confirm destructive operations without prompting.
--dry-run
Preview changes without applying them.
--full
Export fully-qualified domain names.
--identifier _ID_
Routing policy identifier for weighted/failover records.
--weight _N_
Weight value for weighted routing policy.
--profile _NAME_
Use a specific AWS credentials profile.
--endpoint-url _URL_
Custom Route 53 endpoint URL.

FAQ

What is the cli53 command used for?

cli53 is a command-line tool for managing Amazon Web Services Route 53 DNS service. It provides a straightforward interface for creating, modifying, exporting, and importing DNS records using familiar BIND zone file format. The tool supports the full range of Route 53 record types including A, AAAA, CNAME, MX, TXT, SRV, and alias records. It can export entire zones to BIND format for backup or migration, and import records from zone files for bulk updates. cli53 uses standard AWS credential handling, supporting environment variables, credential files, and IAM roles. It's particularly useful for infrastructure automation, disaster recovery preparation, and migrating DNS records between providers.

How do I run a basic cli53 example?

Run `cli53 list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in cli53?

List all hosted zones in the account.