Managing Route53 zones using command-line

From Notes_Wiki
Revision as of 06:54, 5 December 2013 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb> =Managing route53 zones using command line= We can use cli53 ( https://github.com/barnybug/cli53 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb>

Managing route53 zones using command line

We can use cli53 ( https://github.com/barnybug/cli53 ) for updateing route53 DNS records in a easy way from command line.

Installing cli53

To install cli53 use:

sudo pip install cli53


Create RR

To create RR use something like:

cli53 rrcreate <domain> <hostname> <type> <value> --ttl 300 --replace --wait

Example

cli53 rrcreate sbarjatiya.com www CNAME ec2-54-202-44-200.us-west-2.compute.amazonaws.com --ttl 300 --replace --wait


Delete RR

To delete RR use something like:

    cli53 rrdelete <domain> <hostname>

Example

    cli53 rrdelete sbarjatiya.com www

Note that you cannot use FQDN such as stest.api.mtoc.us as command line arguments. Only hostname can be used.


Help

More info on cli53 can be obtained using '--help' option such as 'cli53 --help' or 'cli53 rrcreate --help'


<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb>