Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to the company and have been asked to correct the website domain forwarding. At the moment: goes to our company website, does not forward to the www address.

We are running Windows Server 2003 and I'm not sure what version of IIS. Can someone please explain in plain english what I have to do. I have no experience in website maintenace. Thanks.

share|improve this question

If the address for is different from when you ping them, then there is a DNS issue. You will typically need to set an 'A-record' for and then set a 'CNAME-record' for www that points to

Once that is done, you will need to configure you web server in order to point both domains to the same site. Alternatively, you could have only one active site, say and have the default/index file for redirect everything to automagically.

share|improve this answer
Thank you. I have pinged both of the sites and the fails. So I presume this is a DNS issue. Could you explain how to do this exactly please. – The Woo Aug 20 '09 at 1:22
A ping is not a particularly good representation of if it's working or not. The best way to check your DNS from a Windows box is with a command line utility called 'nslookup' Type 'nslookup' and 'nslookup' and compare the two. – Mark Henderson Aug 20 '09 at 1:45
Farseeker is right. If you ping successfully with two different IPs then there is a potential DNS problem. But if your ping fails, something else is wrong. – sybreon Aug 20 '09 at 3:19

I see from your question that you have 'no experience' in this matter, so whilst I beleive sybreon's answer is technically very good, and absolutely correct, I'll try and elaborate it for you in laymans terms.

In the world of DNS (which is what your web browser uses to map a domain name to your IP address), and are two different things. Even though users expect them to behave identically, the DNS server needs to explicitly be told to behave appropriately.

You will know who your DNS provider is by logging in to wherever you have your domain name purchase (planetdomains, austdomains, etc) and looking under your DNS delegation to see which name servers you are using (it will look like,, etc). Whoever is listed there is providing your DNS service.

Once you have gained access to your DNS, you will be able to allocate the IP addresses against the domain names. First you need to have a 'zone' (which is the bottom level of your domain, so in your case the zone is Inside that zone you have record types. The minimum required to get a website to work in the way you want is to have an A an and a CNAME record.

The A record points to a static IP address. You will create an A record in the zone, leave the prefix blank (so its an A record for - not, and point the IP to your web server. Leave the TTL to default, or set it to 1800 if there is no default. Voila, you have mapped to your web server.

Then, we need to create an entry for We do this with a CNAME record. A CNAME is a record that points to an A record. Reason being, if you need to change your web servers address, you just change the A record and the CNAME will follow. Create a CNAME record for 'www' and refer it to blank (this will make it point to the A record).

OK! So we've delegated our DNS and configured the DNS to point to the web server. A lot (or all) of this may have already been done, so good on you for sticking with it so far!

Next, we need to set up the web server. You will need to open Port 80 (and 443 if you plan on using SSL) on your firewall and point them to the internal IP address of your web server (say, Seeing as how is already working, I'm guessing this is already done.

From here, you have two choices. Do you want the user who goes to to stay on (but see your corporate website), or do you want the user who goes to to be redirected to

If you want them to stay on, then locate your existing website in IIS (you are running v6 if you are on 2003), right-click it and go to Properties. Under the "Web Site" tab (should be default) click on "Advanced". Under "Multiple Identities for this site", click Add. Leave the IP address alone (unless you have reason to change it), TCP port 80, host name is

If you want to redirect them to, you need to create a new website in IIS. Right click on "Websites" and go New > Web Site... Click next. Under description, enter whatever you want. Click next. Change the "host Header" to be and click next. Under Path, point this to your existing website folder, or an empty folder, or anywhere you want (don't worry we will change this later). Click next. Click next on the next screen as well. Finally, click finish. Now, locate the site you just created and right-click it and choose Properties. Go to the tab for "Home Directory". Check the radio for "A redirection to a URL", and under "redirect to", enter Tick the box for "The Exact URL" and "A permanent redirection". Click OK.

And you're done! (Hopefully).

If after all this it still doesn't work, update your question with the output from the following two commands (run from the command prompt):


(note: using a ping service for this is not a particularly good idea, because ping can fail for any number of reasons. An NSLookup (name server lookup) will print out any details it finds for the domain name.

share|improve this answer
+1 for length and detail! – sybreon Aug 20 '09 at 3:21

Assumming that the Windows Server 2003 does not do the URI rewrite might want to look at the DNS configuration for the domain.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.