diff options
Diffstat (limited to 'abs/core/LinHES-config/install_proxy.sh')
-rwxr-xr-x | abs/core/LinHES-config/install_proxy.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/abs/core/LinHES-config/install_proxy.sh b/abs/core/LinHES-config/install_proxy.sh index 4bb2444..2449874 100755 --- a/abs/core/LinHES-config/install_proxy.sh +++ b/abs/core/LinHES-config/install_proxy.sh @@ -119,6 +119,7 @@ case $1 in echo " network check nameserver" mydns=`cat /etc/resolv.conf|grep nameserver|head -1|awk '{ print $2}'` ping -c 1 $mydns + echo " DNS server is $mydns" if [ ! $? = 0 ] then exit 5 @@ -170,14 +171,18 @@ case $1 in echo "Assuming hostname is OK" echo "DNS unknown: $unkownhostip" echo " HOSTDNS: $hoip " + echo " HOST: " /sbin/ifconfig -a |grep "inet addr" + status=0 else echo "IP in DNS but doesn't match mine, hostname is not safe to use" - echo "DNS:$hoip" - echo "HOST: " + echo " hout: $hout" + echo " DNS unknown: $unkownhostip" + echo " DNS IP:$hoip" + echo " HOST: " /sbin/ifconfig -a |grep "inet addr" status=7 - fi + fi fi else echo "Couldn't find hostname in DNS, must be safe to use" |