Browse Source

show first 3 nameservers

master
mxmehl 5 years ago
parent
commit
5628382a5d
Signed by: mxmehl
GPG Key ID: 2704E4AB371E2E92
  1. 4
      status-misc.sh

4
status-misc.sh

@ -56,13 +56,13 @@ function check_svn { @@ -56,13 +56,13 @@ function check_svn {
# NAMESERVER STATUS
function check_ns {
FIRSTNS=$(grep -m1 "^nameserver" /etc/resolv.conf | cut -d" " -f2) # first nameserver in /etc/resolv.conf
NS=$(grep -m3 "^nameserver" /etc/resolv.conf | cut -d" " -f2 | paste -sd',') # first nameserver in /etc/resolv.conf
if [ "$var_ns" == "" ]; then # var_ns is only set with status-interaction.sh, no default value in config.cfg
OUT="$OUT;ns=default"
else
OUT="$OUT;ns=$var_ns"
fi
TOOL="$TOOL;ns=$FIRSTNS..."
TOOL="$TOOL;ns=$NS"
}

Loading…
Cancel
Save