Parvinder Bhasin wrote:
HTTP redirects don't apply to our setup.

From the info that I gather, I really can't do CNAME so I will just write small script to accomodate changing of Ips.

May we the question wasn't so clear.

You refer to "Redirection" in the original question, now you say IP's would work.

Well, if only the IP is what you want then, just have this in your bind configuration for abc.com:

<snip>
                       A       1.2.3.4
$ORIGIN abc.com.
www                    A       5.6.7.8
<snip>

where www.abc.com would reply with the IP 5.6.7.8 and the abc.com reply with 1.2.3.4.

Is that what you want?

Obviously the server at 1.2.3.4 will need to be configure to accept also reply by name for just abc.com and the server at 5.6.7.8 to reply by name to www.abc.com as this in httpd.conf:

<VirtualHost 1.2.3.4>
        ServerName site1.xyz.com
        ServerAlias abc.com
</VirtualHost>

And on the second destination server:

<VirtualHost 5.6.7.8>
        ServerName site2.xyz.com
        ServerAlias www.abc.com
</VirtualHost>

Is that what you were asking?

Anyway, hope it help you more, if not, then sorry for the noise and I obviously don't understand your question.

Best,

Daniel

Reply via email to