Couldn't find this exact same question so here it goes:
I'm trying to setup a CNAME record to an elastic ip linked to a ec2-instance, but this fails. When deassociating the elastic-ip from the instance and linking it to the public dns of the instance it works as expected.
Isn't it allowed to point a CNAME to a ip-address (instead of a dns-name ) ?
btw: i'm not using an A-record, because I already us this to redirect the naked domain (e.g: example.com) to www.example.com using the free service: http://wwwizer.com/
EDIT: more explicitly:
I'd like both
www.allehotelsinparijs.nl to point to
22.214.171.124 which is an amazon elastic-ip (although I think that doesn't matter for this discussion) . Moreover I want
allehotelsinparijs.nl redirect to
Any other way to to this? Since from an answer below it seems that indeed a cname can't link to an ip-address