Question Locked

CNAME's for web farms

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

8 replies

by triathlete1981

I read the entire blog from the link the previous poster made. And it didn't answer the question, at all. In fact, it didn't even brush upon cnames for multiple servers. It delved into cnames for subdomains and SEO and aging delay.

As for multiple cnames, I have two servers running three websites, which are load balanced. I didn't do any cnames, but did the aliases to four IP addresses (since our two servers have 4 addresses between them). I highly doubt it's a Microsoft error in their course, b/c they are known for having nothing but the highest quality documentation for everything they've ever made. Microsoft is infallible, you know. :)

by mekliches

I also read the blog, but nothing in there concerning my question.

I also have a good knowledge of microsoft products, but they have never been infaillible ;)

i always used Host records for webfarms, but as i was reading the course it was clearly noted that we should create Aliase's and not hosts. and when i try to do it, the system won't accept multiple IP hosts for one CNAME.

so ?????

by affes_abder

I have got same problem on CNAME please when you fix tell me .

by rob miners

Now that I have picked up on a line or two that I missed. What they really mean is create a CNAME for each Server. It looks like they as well as me got it wrong. ;)

Is this how you are achieving it.

What you can have is multiple A records, that is different IP addresses for the same name. Define multiple A (IP address) records using the same name (e.g. www.yourdomain.com), each with a different IP. Then, when queries are issued for your domain, the complete list of records is returned with the order changing each time. Most clients will always try the FIRST IP address returned, and will fail-over to others if the first is unavailable.

http://www.securityspace.com/dns/faq.html

This discussion is closed to new replies.