Thursday, November 27, 2014

AWS Facts: Route53

A) ALIAS records:

  • An ALIAS record will link your record set to a particular AWS resource directly (i.e. you can map a domain to an S3 bucket, ELB, CloudFront distribution) 
  • You can create an alias resource record set at the zone apex. For example, if you register the DNS name example.com, the zone apex is example.com.
      • if you try to set CNAME or A record of some apex zone(e.g. example.com), it will give you error. So the only option is just to make an alias entry. 
  • Amazon Route 53 doesn't charge for alias queries, however charges for CNAME queries. 




------------------------------------ aws cli bits ----------------------------------------
### List all the hosted zones
$ for i in `aws route53 list-hosted-zones --output=text --profile myprofile --query 'HostedZones[*].Name'`; do echo "$i"; done

### List all the records against Z2A22EOFF20PZ7 hostedzone.
    $ aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/Z2A22EOFF20PZ7" --profile myprofile

1 comment: