Question
May 16, 2008 at 11:57 PM
mekliches

CNAME’s for web farms

by mekliches . Updated 18 years, 2 months ago

Hi,
recently i was asked a question about cname’s.
problem: I have 3 web servers that i would load balance using DNS resolution.
I was able to do it by creating a host name www pointing to the 3 ip addresses of the servers.
the dns file should be something like this:
(
www A 192.168.1.100
www A 192.168.1.101
www A 192.168.1.102
)
this works fine for me, but from the official Microsoft course they say that i should create 3 host record for each server, and then create an alias(CNAME) pointing to the three hosts:
DNS file should be something like :
(
web1 A 192.168.1.100
web2 A 192.168.1.101
web3 A 192.168.1.102
www CNAME web1
www CNAME web2
www CNAME web3
)

unfortunately when i try to create a second cname this doesn’t work and an error is displayed saying that we can’t create 2 aliases with the same name. (which is logical).

I would like to know if the official microsoft is erroneous or there is a way to accomplish this and i don’t know about it.

thanks.

PS: I’m using Microsoft Windows Server 2003 Std edition as a DC with DNS installed and integrated AD zone set.

This discussion is locked

All Comments