#!/bin/sh

#################################################################################
#
#   Lynis
# ------------------
#
# Copyright 2007-2009, Michael Boelen (michael@rootkit.nl), The Netherlands
# Web site: http://www.rootkit.nl
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
# welcome to redistribute it under the terms of the GNU General Public License.
# See LICENSE file for usage of this software.
#
#################################################################################
#
# Nameserver YYY
#
#################################################################################
#
    InsertSection "Software: nameserver"
#
#################################################################################
#
    #YYY
    # FIND=`named-checkconf ; echo $?`
    # - Add to binary check list
    #echo "      - Checking Bind configuration... [Test not implemented yet]"
#
#################################################################################
#
    # Test        : NAME-4016
    # Description : Check main domain (domain <domain name> in /etc/resolv.conf)
    #if [ ! -z "${OPENSSLBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
    #Register --test-no NAME-XXXX --preqs-met ${PREQS_MET} --weight L --network NO --description "XXXX"
    #if [ ${SKIPTEST} -eq 0 ]; then
#
#################################################################################
#
    # Test        : NAME-4020
    # Description : Check search domains
    #if [ ! -z "${OPENSSLBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
    #Register --test-no NAME-XXXX --preqs-met ${PREQS_MET} --weight L --network NO --description "XXXX"
    #if [ ${SKIPTEST} -eq 0 ]; then
#
#################################################################################
#
    # Test        : NAME-4024
    # Description : Check Solaris uname -n output
    Register --test-no NAME-4024 --os Solaris --weight L --network NO --description "Solaris uname -n output"
    if [ ${SKIPTEST} -eq 0 ]; then
	FIND=`uname -n`
	logtext "Result: 'uname -n' returned ${FIND}"
        Display --indent 2 --text "- Checking uname -n output..." --result DONE --color GREEN
    fi
#
#################################################################################
#
    # Test        : NAME-4028
    # Description : Check Solaris uname -n
    #Register --test-no NAME-4028 --os Solaris --weight L --network NO --description "Check uname -n"
    #if [ ${SKIPTEST} -eq 0 ]; then
	#FIND=`uname -n`
#	logtext "Result: 'uname -n' returned ${FIND}"
#        #Display --indent 2 --text "- Checking default gateway..." --result "NONE FOUND" --color WHITE
#    fi

    # If a system is standalone, /etc/nodename should contain a system name only, not FQDN
#
#################################################################################
#

wait_for_keypress

#
#================================================================================
# Lynis - Copyright 2007-2009, Michael Boelen - www.rootkit.nl - The Netherlands
