aws:route53
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
aws:route53 [2015-03-21 15:27] – links gabriel | aws:route53 [2019-08-10 18:42] (current) – changed title for category gabriel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Route 53 ====== |
This page documents some tips and tricks I've learned for using Amazon Route 53 DNS services. | This page documents some tips and tricks I've learned for using Amazon Route 53 DNS services. | ||
+ | |||
+ | The API ID you use to manage Route 53 will require the IAM Group Policy AmazonRoute53FullAccess. | ||
===== Reusable Delegation Sets ===== | ===== Reusable Delegation Sets ===== | ||
Line 7: | Line 9: | ||
Route 53 now supports creating " | Route 53 now supports creating " | ||
- | Unfortunately the usage isn't crystal clear, but if you read the API docs it's possible to decipher. | + | Unfortunately the usage isn't crystal clear, but if you read the API docs it' |
http:// | http:// | ||
http:// | http:// | ||
+ | ==== Create the Zone ==== | ||
+ | |||
+ | You first will need to create the zone itself either using the API or from the web interface. | ||
+ | |||
+ | ==== Make the Zone Reusable ==== | ||
+ | |||
+ | Now find the Zone ID it will be a 16 character alphanumeric string. | ||
+ | |||
+ | In this example our Zone ID is Z1234567890ABCDEF. | ||
+ | |||
+ | Once you know this you can use the CLI to convert the zone to make its DNS servers reusable. | ||
+ | |||
+ | <code bash> | ||
+ | # you need to have a caller reference for DNS calls to Route 53, it can be any string | ||
+ | REF=" | ||
+ | RE_ZONEID=Z1234567890ABCDEF | ||
+ | |||
+ | aws route53 create-reusable-delegation-set --caller-reference $REF --hosted-zone-id $RE_ZONEID | ||
+ | </ | ||
+ | |||
+ | This will return something like: | ||
+ | |||
+ | < | ||
+ | https:// | ||
+ | DELEGATIONSET CreateReusableDNSQuay01 / | ||
+ | NAMESERVERS ns-918.awsdns-53.net | ||
+ | NAMESERVERS ns-1295.awsdns-32.co.uk | ||
+ | NAMESERVERS ns-143.awsdns-14.com | ||
+ | NAMESERVERS ns-55.awsdns-16.org | ||
+ | </ | ||
+ | |||
+ | Note the delegation set ID. You will need this in the future when you reuse these servers with other zones. | ||
+ | |||
+ | ==== Create new Zones Using the Reusable Delegation ==== | ||
+ | |||
+ | Now for your new zones which use these records you will need to create them using the API. I don't believe there is any way to do so using the web interface (but I didn't look very hard). | ||
+ | This part is trivial. | ||
+ | <code bash> | ||
+ | ZONE=gabe.sh | ||
+ | DEL_SET=N01234567890A | ||
+ | REF=" | ||
+ | aws route53 create-hosted-zone --delegation-set-id $DEL_SET --name $ZONE --caller-reference $REF | ||
+ | </ |
aws/route53.1426966062.txt.gz · Last modified: 2015-03-21 15:27 by gabriel