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

I need to make a web site address available on the local internat...
such that anyone in our local network can go to "www.example.com" and be redirected to the machine ip with this website...

How can this be done on windows servers?

Edit: And how to setup a local DNS Server?

share|improve this question

migrated from superuser.com Jul 22 '10 at 9:39

3 Answers

up vote 1 down vote accepted

You need some way for every client to map "www.example.com" to the relevant IP.

To my mind, you've got 2 options.

  1. Add an entry in the intranet's DNS server (or setting up a DNS server if you've not got one).
  2. Add an entry to the "hosts" file on every client on the network.

You don't say how many clients you've got, nor what OS they are running.

On linux machines, the host file is /etc/hosts.
On windows, the host file is C:\WINDOWS\system32\drivers\etc\hosts

Adding a line that says:

1.2.3.4 www.example.com

to this file should allow the client to resolve it.

However, editting and maintaining hosts files becomes a pain when you've many clients and/or many servers. Using a DNS server is probably the better option.

share|improve this answer

Do you mean on your own intranet (i.e. one solely under your control)?

If so then simply host your site using Windows IIS, apache or similar and create a DNS entry that points to the site and test.

share|improve this answer
On which machine to create the DNS entry? How other machines will look for this DNS on that machine? – Betamoo Jul 22 '10 at 9:49
Your internal DNS server. And don't duplicate posts, I've deleted your new copy. – Chopper3 Jul 22 '10 at 10:00
Thanks for help.. But I am a begineer, can you provide more details? – Betamoo Jul 22 '10 at 10:11

Setting up a local DNS server can be done on a Windows 2003/2008 server, or on a Linux server if you wish to go that route. It's not a quick 2 minute thing though.

If you wish to set it up in Windows: http://technet.microsoft.com/en-us/library/cc738619%28WS.10%29.aspx

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.