Tell me, please, how to implement the task correctly.

I installed VMware on my computer, created a virtual machine on which I installed ubuntu, apache, on a virtual machine I have two sites: site.zo and mywork.zo.

How to make the sites located on the virtual machine open when you enter site.zo and mywork.zo in the browser?

Now I prescribe on my Windows in the hosts file - everything works, but this option does not suit me.

  • You need to somehow beat the usual DNS and provide your chosen sites to the selected sites. If you do not have a router that can do this, then editing the hosts will remain the easiest method. - etki
  • The fact is that I created a second virtual machine, and I need to, so that I can refer to another virtual user not by ip, but by domain. - Vadym

1 answer 1

Add your sites to / etc / hosts on each host. Or install bind and configure the zone "zo" by adding A-records for your sites in dns. Setting up a bind for this configuration is not difficult. If you choose the second option, do not forget to specify your virtual server with bind as the dns server on the test hosts.

  • Thanks, I'll try your option. - Vadym
  • I advise dnsmasq, it is easier to configure for such purposes - sercxjo