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