My domains are managed on Google but my site is hosted on AWS. I want to point both my root my-company.com
and the www subdomain www.my-company.com
to an AWS Load Balancer, which has an address, not an IP.
Although I am allowed to add a Custom CNAME Resource Record for the www subdomain and it points to the LB address without any problems, I am not allowed to make the root record a CNAME record nor am I allowed to have the root A Record point to the LB address.
It seems I have no way to point my root domain to an AWS Load Balancer.
I tried looking into forwarding the domain to the www
subdomain which works, but Google warns that then both the root and www
records will be removed, so that would break the www
forward to my LB.
I thought to create a subdomain prod.my-company.com
and use domain forwarding to point both root and and www
to prod
(Google says that domain forwarding will not affect any subdomains accept www
) but this will not work because it will forward users to prod.my-company.com
.
I tried using AWS Route53 and was thinking of adding an NS record for root but Google also doesn't allow NS records for root!
Any thoughts on how to make this work?