I created a Ubuntu 12.10 virtual machine in VMware which runs an Apache server. The VMware machine is on a bridged network adapter, so it's using the physical network connected on my host.
For now I can access the web server in the VM using its dynamically assigned IP address, e.g.:
However, its IP address is likely to change everytime I restart the VM (because of DHCP). In order not to have to determine the IP address of the machine over and over again, I'd like to access it using a domain/host name, e.g.:
How can I accomplish this?
It's a VMware vm with bridged networking.
My host OS is Ubuntu 12.10 too.
My local network uses DHCP and I'd rather not using static IP address.
The DHCP server is the one built-in my router. And I don't know about the DNS sever (Do I have a local one by default?)