host names on server with VMs

Discussion in 'Installation/Configuration' started by Samo_slo, Jul 20, 2016.

  1. Samo_slo

    Samo_slo Member

    Hi, I,ve installed a headless Ubuntu 14.04 server on which runs VirtualBox exactly 1 vm for master web server with ISPConfig 3 interface, 1 vm for mail server and 2 vms for DNS where 1 mirrors the other. On every vm I have all the IPs and hostnames in the /etc/hosts so I can ping them with IP or hostname.
    Do I need to add them to the hosts file from the headles server where they run? Or doesn't it even matter?

    Little OFF topic question:
    My server still has no IP and FQDN so I can't display sites on him and test the features. So how to configure the DNS for a website, do I use the private IP off the vm server it's on or the public IP (when I get it) that will point to my FQDN off the server?
     

Share This Page