Handling range in CNAME

Posted by Imran on Server Fault See other posts from Server Fault or by Imran
Published on 2012-06-18T08:06:15Z Indexed on 2012/06/18 9:18 UTC
Read the original article Hit count: 488

Filed under:
|
|
|

We have different set of CNAMEs pointing to different subdomains. These subdomains (a.domain.com, b.domain.com) are pointing to different IPs on different machines.

# Server A
a1.domain.com pointing to a.domain.com
a2.domain.com pointing to a.domain.com
..
aN.domain.com pointing to a.domain.com

# Server B
b1.domain.com pointing to b.domain.com
b2.domain.com pointing to b.domain.com
..
bN.domain.com pointing to b.domain.com

Currently, we have to add individual CNAME entries (eg. a1... aN) against a single subdomain (a.dominan.com). We repeat the above process for every new server which is actually another subdomain (e.g. c.domain.com). Is there a way we can specify a range of CNAMEs (e.g. [a1..a25].domain.com point to a.domain.com) instead of adding separate CNAME etnries?

Is there any possibility to handle this at DNS or webserver (apache or Nginx) level?

© Server Fault or respective owner

Related posts about apache2

Related posts about dns