1
I have a local site running through my server computer located at 192.168.2.111 (port 80) on my network. I'm currently running the site using XAMPP. In order for the site to be accessed, I have created an alias which the users would use to type in the URL.
In order for this alias to be resolved, I needed to modify the Windows hosts file and append the following (on the server computer running Apache etc.):
127.0.0.1 www.mysite.com
Now, the problem starts when other local computers need to access this site. I had modify the host file for each computer on the network to point to the server in order for the address to be resolved:
192.168.2.111 www.mysite.com
This works like a charm and everyone can access the site. This, however, becomes problematic and tedious when there are 30 computers involved.
Is there a way to get the same results WITHOUT having to do this for thirty computers? If the Server's IP address were to change, I would need to change it for all computers and want to avoid that.
Any suggestions would be great!
Thanks.
1Have you added the A records on your server for the fqdn? – Pretzel – 2014-03-31T18:40:31.940
http://superuser.com/questions/651337/how-to-create-internal-host-names-on-a-lan-for-intranet – Ƭᴇcʜιᴇ007 – 2014-03-31T18:52:49.983
http://superuser.com/questions/630481/local-dns-server-is-required-to-use-names-instead-of-full-ip?rq=1 – Ƭᴇcʜιᴇ007 – 2014-03-31T18:54:12.870