0

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?

3 Answers 3

1

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.

1

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.

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

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: Windows Server 2003/2003 R2 Retired Content | Microsoft Download Center

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .