Multiserver and etc/hosts configuration

Discussion in 'Installation/Configuration' started by esezako, Sep 29, 2017.

  1. esezako

    esezako Member

    In a multisever with dedicated servers, how can i set /etc/hosts file if my domains are?:
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    IP1 Hostname1
    IP2 Hostename2
    IP3 Hostname3

    and so on.
  3. esezako

    esezako Member

    I use proxmox with openvz containers and my issue is that the hostname is the subdomain of fqdn, then i have this config:
    • IP1 web1
    • IP2 web1
    • IP3 mail1
    • IP4 mail1
    • IP5 db1
    • IP6 db1
    • IP7 ns1
    • IP8 ns1
  4. user011

    user011 Banned

    Structure of /etc/hosts is as follows::
    For BSD/MSD
    IP_or_IPRange ::_:: hostName ::_::
  5. esezako

    esezako Member

    Yes, but in Perfect setup Multiserver Setup With Dedicated Web, Email, DNS & MySQL Database Servers On Debian 8 With ISPConfig 3.1, we need the command "hostname" return web1 (mail1, db1, etc) and "hostname -f" return,, etc

    This is my issue.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    It is ok when both commands return the full hostname., so you can try to use the full hostname only in /etc/hosts and not the short version.
  7. esezako

    esezako Member

    OK, i will try it.

Share This Page