Sunday, December 4, 2016

How to create a CNAME for a domain's root name

I'd like to set a domain's root name to a CNAME instead of the usual A record.



Here's a perfect example of what I'm trying to do:



dig lrnskls.com



Notice the answer section:



;; ANSWER SECTION:

lrnskls.com. 300 IN CNAME partner.adjix.com.

partner.adjix.com. 300 IN A 67.121.212.61



The reason I'm trying to do this is so I can point a domain's root name, via a CNAME alias, to Amazon's S3. Using an A record doesn't work because S3's IPs change every few minutes for load balancing purposes.



PS - This seems to be legal under section 3.6.2 of RFC 1034 (note the USC-ISIC.ARPA example):
http://www.faqs.org/rfcs/rfc1034.html

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...