I am trying to point a fully qualified domain name "example.com" to an external host such as Amazon ELB "site-xxxxxx.us-west-1.elb.amazonaws.com" using HOSTALIASES environment variable and it's not working.
example.com site-xxxxxx.us-west-1.elb.amazonaws.com
However, when I use a different alias such as "example site-xxxxxx.us-west-1.elb.amazonaws.com". The example correctly resolves.
example site-xxxxxx.us-west-1.elb.amazonaws.com
My Question is can I use a fully qualified domain name "example.com" as an alias pointing to another public domain using HOSTALIASES? If not then what are the other options?