Want more timely Centmin Mod News Updates?
Become a Member

Sysadmin bad command nospoof on /etc/host.conf

Discussion in 'System Administration' started by Itworx4me, Jun 11, 2018.

  1. Itworx4me

    Itworx4me Premium Member Premium Member

    339
    35
    28
    Mar 14, 2017
    Ratings:
    +65
    Local Time:
    1:59 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.09beta01
    • Nginx Version Installed: i.e. 1.14.0
    • PHP Version Installed: i.e. 7.2.6
    • MariaDB MySQL Version Installed: i.e. 10.1.33
    • When was last time updated Centmin Mod code base ? : i.e. Every 6 hours
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc

      PHP_PGO='y'

      Code (Text):
       yum update --disableplugin=priorities --enablerepo=remi
      'etc/host.conf: line 6: bad command `nospoof on
      /etc/host.conf: line 7: bad command `spoofalert on'
      Loaded plugins: fastestmirror, langpacks, versionlock
      Loading mirror speeds from cached hostfile
       * base: repos.mia.quadranet.com
       * epel: mirror.nodesdirect.com
       * extras: repos.mia.quadranet.com
       * remi: repo1.dal.innoscale.net
       * rpmforge: mirror.teklinks.com
       * updates: repos.mia.quadranet.com
      Resolving Dependencies
      --> Running transaction check
      ---> Package MariaDB-server.x86_64 0:10.1.32-1.el7.centos will be updated
      ---> Package MariaDB-server.x86_64 0:10.1.33-1.el7.centos will be an update
      ---> Package remi-release.noarch 0:7.4-2.el7.remi will be updated
      ---> Package remi-release.noarch 0:7.5-1.el7.remi will be an update
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
    Why the bad command lines?

    Thanks,
    Itworx4me

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:59 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    new install or existing install ? how old and with which web host/plan ?

    centmin mod doesn't touch /etc/host.conf so as you can see it says lines 6 and 7 of /etc/host.conf had issues

    what's output for
    Code (Text):
    cat -n /etc/host.conf
    


    for posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)

    from Cron jobs now failing with nospoof error

    my centos 7.5 default contents
    Code (Text):
    cat /etc/host.conf
    multi on
    
     
  3. Itworx4me

    Itworx4me Premium Member Premium Member

    339
    35
    28
    Mar 14, 2017
    Ratings:
    +65
    Local Time:
    1:59 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    This is an existing install. This is the first time I have ever run into theses issues. Hosting plan is a Dedicated Server with only 1 site running on it. 6 Months old. Here is the output requested:

    Code (Text):
     cat -n /etc/host.conf
         1  # Lookup names via DNS first then fall back to etc/hosts.
         2  order bind,hosts
         3  # We have machines with multiple IP addresses.
         4  multi on
         5  # Check for IP address spoofing.
         6  nospoof on
         7  spoofalert on


    Code (Text):
     cat /etc/host.conf
    # Lookup names via DNS first then fall back to etc/hosts.
    order bind,hosts
    # We have machines with multiple IP addresses.
    multi on
    # Check for IP address spoofing.
    nospoof on
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:59 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah just do as bug link suggests remove nospoof on line from /etc/host.conf