Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS URL Redirect

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
I have two records on the windows server as follows.

site1.com
www cname site1.com
(same as parent folder) host(a) 11.22.33.444
some other stuff

site2.com
www cname site2.com
(same as parent folder) host(a) 11.22.33.444
some other stuff

now, i need to tell site1.com is no longer site1.com and redirect to site2.com. How do i do that? I couldn't create a cname on site1.com with site2.com. It throws an error saying "an alias cname record cannot be added to this dns name. the dns name contains records that are incompatible with the cname record"
thanks in advance.

 
change the www. cname in site 1 to an A record:
11.22.33.444

This will send anyone in site 1 that puts to that ip

hope i understood the question.


_______________________________________
I hope any help I give leads to great successes.
MCSE, MCSA, MCTS, CCA, VCP, CCNA
 
If both sites are already on the same server, and have the same IP address (as your example indicates), then there's nothing to do. The host at 11.22.33.44 already receives traffic for both hostnames.

You probably need to figure out redirects or server aliases for your web server, not DNS.
 
You need to configure Host Headers in your IIS configuration.

Host headers allow for multiple sites to be hosted on the same IIS server (and IP address).

Simon

The real world is not about exam scores, it's about ability.

 
Adding site1.com as a host header to site2.com won't be a good solution. site1.com is literally dead so ppl are not supposed to see site1.com anymore. I ended up writing some server side script to check for the url. I am not sure if this is the most efficient way.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top