3 ms·
honestly DNS still confuses me a bit. I have a CNAME record pointing www to the ec2 public url. What do I do for the naked domain?
by wolfparade 15y ago
honestly DNS still confuses me a bit. I have a CNAME record pointing www to the ec2 public url. What do I do for the naked domain?
- mnutt 15y agoSet up an A record and point it directly at the IP address. Edit: on EC2, much better to set up an elastic IP as described below.
- darrellsilver 15y agoCareful not to put an ec2 host IP address directly in your DNS provider. Given the caching in DNS, if/when you change EC2 instances you'll be given a new IP, and your site will be down (or looking at the old server) while DNS updates. Better to use amazon's Elastic IP. Simply 1) create one, 2) assign it to the EC2 instance of your choice, 3) add the Elastic IP as your A record as the parent post suggests.