I have example.com
registered at GoDaddy (and hosted elsewhere). I created a subdomain at sub1.example.com
.
I have a virtual linux machine running great on EC2 accessible as ec2-xx-xx-xx-xx.compute-1.amazonaws.com
Question: How do I get sub1.example.com
to point to my EC2 virtual machine?
There are two way you can setup this:
A
record to this EIP.CNAME
record with name as subdomain and value as your EC2 public DNS which is ec2-xx-xx-xx-xx.compute-1.amazonaws.com
.