/etc/hosts issue

Discussion in 'Installation/Configuration' started by Luca Cravero, Jul 3, 2018.

  1. Luca Cravero

    Luca Cravero New Member

    Hello,
    i'm using ISPConfig with multi-server configuration, version 3.1.12, on Linux Debian 9.4.
    ns1.domain.tld (IP address 192.168.1.10) is the primary ISPConfig server.
    ns2.domain.tld (IP address 192.168.1.20) is the secondary ISPConfig server; he is configurated as a mirror of ns1.domain.tld.
    ns1.domain.tld and ns2.domain.tld are not public DNS records, so i manually edited /etc/hosts file on both the server as following:

    127.0.0.1 localhost
    192.168.1.10 ns1.domain.tld
    192.168.1.20 ns2.domain.tld

    After some time:
    • I lost connectivity with ns2.domain.tld until i reboot him
    • After reboot, the server ns2.domain.tld come back online but the /etc/hosts file is changed as following:
    127.0.0.1 localhost
    192.168.1.10 ns2.domain.tld
    192.168.1.20 ns2.domain.tld

    On ns1.domain.tld instead the /etc/hosts is unchanged.
    As soon as i modify again the /etc/hosts file on ns2.domain.tld, i loss connectivity again and the server come back with /etc/hosts changed.

    Network Configuration is disabled for both the servers, 'cause the network interface is not eth0.

    Thanks
    Regards
     
    Last edited: Jul 3, 2018
  2. Jesse Norell

    Jesse Norell Well-Known Member

    Often vps setups set some /etc/hosts entries, maybe that's what's going on? If you can't find the source of the change, try setting the immutable attribute on the file.
     
  3. Luca Cravero

    Luca Cravero New Member

    Hi Jessie, thanks for your reply. That's what i made and now the /etc/hosts file is untouched, but the server become still disconnetted from network....
     

Share This Page