View Full Version : [ubuntu] Host name on LAN

April 4th, 2012, 06:58 PM
For a school project I have set up a LAMP server on VMware.

I installed another vm running win7 just to see if I can access the web page outside of the server.

I bridged the connections and set them on the same network I can access the page by putting the server ip in but when I put in the host name jdbank.ca I have no luck what so ever.


April 4th, 2012, 07:51 PM
You have 2 options:

1 - Set up an internal DNS server. Difficult to set up but minimal configuration needed on the system you are using to access the web server.

2 - Edit your hosts file. Easy to set up but needs doing on each machine you want to access the website from.

For your purposes I would go with option 2. Edit the hosts file on your Windows 7 VM (you can find it at %systemroot%\system32\drivers\etc\hosts) and add the following line: jdbank.ca