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?:
    • web1.domainA.com
    • web1.domainB.com
    • mail1.domainA.com
    • mail1.domainB.com
    • db1.domainA.com
    • db1.domainB.com
    • ns1.domainA.com
    • ns1.domainB.com
    Thanks
     
  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.domainA.com web1
    • IP2 web1.domainB.com web1
    • IP3 mail1.domainA.com mail1
    • IP4 mail1.domainB.com mail1
    • IP5 db1.domainA.com db1
    • IP6 db1.domainB.com db1
    • IP7 ns1.domainA.com ns1
    • IP8 ns1.domainB.com ns1
     
  4. user011

    user011 Banned

    Structure of /etc/hosts is as follows::
    For BSD/MSD
    Code:
    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 web1.domainA.com, web1.domainB.com, 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.
    Thanks,
     

Share This Page