Welcome to Centmin Mod Community
Register Now

Beta Branch centos 6 fix for hostname -f detection

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 24, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    59,330
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,143
    Local Time:
    4:21 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    centos 6 fix for hostname -f detection


    - on centos 6 the hostname -f detection will give error unknown host on dummy not FQDN based hostnames so need to fallback to hostname command without -f when unknown host errror is detected.

    example if you run local virtualbox centos server and hostname is set to domain.localdomain instead of say host.domain.com, then hostname -f would result in

    Code (Text):
    hostname -f
    hostname: Unknown host
    

    so fall back to hostname command without -f
    Code (Text):
    hostname
    domain.localdomain
    


    Continue reading...

    123.09beta01 branch