Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Must use www for DNS entry using Amazon Route53

Tags:

dns

amazon

I administered my domain e.g www.abcd.com in Amazon Route53. Everything works perfectly, except that when user type abcd.com without www, it won't get resolved. Any idea? Thanks

like image 452
iwan Avatar asked Mar 04 '12 23:03

iwan


People also ask

Do you need a www record in DNS?

If you're using a less recognisable or ambiguous TLD, such as mysite. ninja, adding a 'www' will help avoid any doubt. Without the 'www', you must set your root (non-www) domain DNS A-record to point at your web server's IP address.

Does Route 53 support DNS over https?

Yes. DNS answers will be available within every VPC that you associate with the private hosted zone. Note that you will need to ensure that the VPCs in each region have connectivity with each other in order for resources in one region to be able to reach resources in another region.

How does Route 53 work with DNS?

The Route 53 name server searches the DNS zone for the www.website.com IP address and other relevant information and returns it to the DNS resolver. As specified by the Time to Live (TTL) parameter, the DNS resolver caches the IP address locally, and of course returns it to the user's web browser.

How do I add a DNS record to Route 53?

Configure DNS Records on Route 53 Click Hosted Zones and select the domain you wish to configure. Click Create Record Set to add a new record, then select A - IPv4 address for the record type. Leave the Name field blank and enter the A record value provided by Pantheon in the Value field.


2 Answers

I think this might work:

Select an IPv4address and select the "Alias" radio button.

Leave the name field blank to indicate domain.com

Then the target is www.domain.com

I'll give it a try and let you know.

like image 115
Max Avatar answered Oct 24 '22 18:10

Max


To have your domain.com (without www) on Amazon Route53 you need:

  • Go to your record sets;
  • Create a Record Set, type A - IPv4 Address;
  • Put your domain.com or www.domain.com on value and save.

On my case I create a new record set for www.domain too, but with type CNAME and put my ec2 domain.

[edit] Print of my current configuration: enter image description here

[update] If not work for you then you need to check your apache configuration. Check the ServerName and ServerAlias to allow *.yoursite.com or just www.yoursite.com. Don't forget restart your apache after changes.

like image 32
Lucas Serafim Avatar answered Oct 24 '22 20:10

Lucas Serafim