Link to home
Start Free TrialLog in
Avatar of njgroup
njgroup

asked on

how to configure dns to point to multiple websites on IIS?

hi,

in windows server 2003, I have in a IIS three websites already added already, and I have a static ip already routed to this server, I wanna stop hosting in godaddy, and I wanna host my websites in my server, (as I have a static ip and already routed to my server - when put the ip address in browser, I got the default website which already comes with IIS)

so how can I configure the dns to do that so when I write www.mywebsiteone.com it will be redirected to my website #1, and so one to other websites...
Avatar of Justin Owens
Justin Owens
Flag of United States of America image

You have to do a couple of things:

1) let's assume your internal domain and external domain don't match.  In other words, mywebsiteone.com is external and mywebsiteone.local is internal.

2) If that is the case, it is very easy.  Just set your router to forward web requests to your IIS server and redirect your DNS entry publicly to your static IP given you by your ISP.  Make sure your firewall will allow that traffic to pass.  GoDaddy's exact process is not known to me, but you should be able to, in essence, say, "Stop hosting and instead point here:", just as you would your public MX record.
Avatar of Chris Dent

Have you configured Host Headers?

You'll need those to get the requests to each site.

For instance, if the site for "mywebsiteone.com" has Host Headers that include "www.mywebsiteone.com" and "mywebsiteone.com" the requests using those names will go there. Any other request will go to the Default Web Site (or the site with a blank name listed in its Host Header).

For IIS 6 you find Host Headers in the Properties for the Web Site under the Web Site tab, and Advanced beneath Web site identification (it'll bring up a box for Multiple identities for this website).

Chris
Avatar of njgroup
njgroup

ASKER

I have a domain, but I didn't put a server in a domain, do I need to do so?

Not if you don't want to, or not unless there's a need to.

Chris
Avatar of njgroup

ASKER

I have change the static IP for all of three websites to my static ip address, but in case if you write a domain name (www.something.com) for any of them, I am getting the default website, I need each of them to load its real content
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Chris is correct about the Host Headers.
It's the only way that IIS will be to figure out which site you're actually trying to contact.
Avatar of njgroup

ASKER

Chris-Dent, I was looking for something better than A grade for you :)

you really deserve more!

thanks very much for you specially and the others