2

I was using hosting with plesk panel until now, in plesk there would be a CNAME DNS record for the www record like this:

HOST             | Record Type | Value 
www.example.com. | CNAME       | example.com.

now in aws route 53, looking at docs and video tutorials I found 2 ways, one is to add 2 A records both pointing to the same IP of the webserver

and another way is to add 1 A record, and another A record as Alias for the first one

using both ways it will work depending on the hostname value in the IIS

so if the hostaname in IIS is set to www.example.com than only this url will work but the http://example.com won't work and if the hostname is example.com than the url with www won't work

my question is, what is the correct way to do this using route53

Omu
  • 327
  • 2
  • 6
  • 19

2 Answers2

4

All of the options mentioned in the question will work.

What you did before will work on Route53:

example.com. A 192.0.2.1
www.example.com. CNAME example.com.

Or:

example.com. A 192.0.2.1
www.example.com. A 192.0.2.1

Or:

example.com. A 192.0.2.1
www.example.com. A <Route53 alias to example.com.>

On the IIS side, you'll need to add bindings for both example.com and www.example.com to the site. (It may be a good idea to set up an HTTP redirect from one of these to the other.)

Håkan Lindqvist
  • 33,741
  • 5
  • 65
  • 90
1

Sometimes specially if you are on a slave nameserver it is also important to increase the serial number. Serial numbers are used by slave nameservers to determine when a zone transfer is necessary. Higher values are considered to be more recent than lower values.

If the master has a more recent copy of the zone than its possible that the slave is ignored.

Max Muster
  • 297
  • 1
  • 5
  • 26