Mobile app version of vmapp.org
Login or Join
Chiappetta492

: How to point all domain with ELB dns In Aws I am creating A ELB(Elastic Load Balancer ) for handling load over instances . my question is in previous we are use single instance and add this

@Chiappetta492

Posted in: #AmazonEc2 #Dns #LoadBalance

In Aws I am creating A ELB(Elastic Load Balancer ) for handling load over instances . my question is in previous we are use single instance and add this instance with an elastic ip . with this elastic IP we are pointed a multiple domain and subdomain in our domain provide account (in siteground ). Now how I point all domain and subdomian with ELB . Our ELB name is LAMPLB-xxxxxx.eu-west-1.elb.amazonaws.com

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta492

1 Comments

Sorted by latest first Latest Oldest Best

 

@Frith620

If the domains are subdomains (e.g. mysite.example.com) then what you need in DNS is a CNAME record. The target of the record will be the ELB hostname.

mysite IN CNAME elb-hostname....amazonaws.com.


If the site is not a subdomain, but instead is a zone apex (e.g. example.com itself) then a CNAME record will not work, here. Instead, you need an ALIAS record, which requires that your DNS be hosted in Route 53.

Alias records were designed as a solution to what is otherwise a limitation of the way DNS works. At the top (apex, root) of a given domain, it's not possible for a standards-compliant DNS server to return a different name, the way CNAME does for hosts within a domain.

Since Route 53 has "internal" knowledge of the current RRs for the ELB, it uses that information to answer queries directly.


Route 53 responds to each request with one or more IP addresses for the load balancer

docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html
Note that you can use ALIAS records at the subdomain level, too... but they are only required when you're not working with a subdomain.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme