Join the community today
Become a Member

Install Just checked my "/etc/host" file and it's empty..

Discussion in 'Centmin Mod Insights' started by rdan, Jun 6, 2014.

Tags:
  1. rdan

    rdan Well-Known Member

    4,605
    1,111
    113
    May 25, 2014
    Ratings:
    +1,632
    Local Time:
    2:33 PM
    Mainline
    10.2
    Should be fine?
    Or I should declare my hostname on the file?
    This is a minimal install centos done via vnc.
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    4:33 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    check /etc/hosts not /etc/host ?

    yeah minimum i would have is

    Code:
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    serverip host.domain.com host
     
  3. rdan

    rdan Well-Known Member

    4,605
    1,111
    113
    May 25, 2014
    Ratings:
    +1,632
    Local Time:
    2:33 PM
    Mainline
    10.2
    /etc/host should be fine blank right?
    /etc/hosts should contain my hostname?
     
  4. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    4:33 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    /etc/host shouldn't exist only /etc/hosts
     
  5. rdan

    rdan Well-Known Member

    4,605
    1,111
    113
    May 25, 2014
    Ratings:
    +1,632
    Local Time:
    2:33 PM
    Mainline
    10.2
    Aw :D
    I tried nano /etc/host stupid me :D
     
  6. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    4:33 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    haha yeah you can't prevent human error :LOL:
     
    • Like Like x 1
  7. Dnyan

    Dnyan Member

    65
    9
    8
    Sep 16, 2017
    Ratings:
    +11
    Local Time:
    12:03 PM
    1.17.2
    10.1.41
    Does it requires reboot to take effect or there is no need to reboot after editing hosts file.
     
  8. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    4:33 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    no need to reboot, it just works
     
    • Like Like x 1