You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
case $BLOCK_BUTTON in
|
|
|
|
1)
|
|
|
|
echo "HI"
|
|
|
|
echo "HI"
|
|
|
|
echo ""
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
LOOKUP="a"
|
|
|
|
if [ ! -z "$2" ]; then
|
|
|
|
LOOKUP="$2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
COLOR=""
|
|
|
|
|
|
|
|
NAMESERVERS=$(drill "$LOOKUP" "$1" | sed -ne '/ANSWER SECTION/,/AUTHORITY SECTION/ p' | head -n -2 | tail -n +2 | awk '{ print $5" " }' | xargs echo)
|
|
|
|
|
|
|
|
if [ ! -z "$3" ]; then
|
|
|
|
if [ "$NAMESERVERS" = "$3" ]; then
|
|
|
|
COLOR="#00FF00"
|
|
|
|
else
|
|
|
|
COLOR="#FF8000"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$label $NAMESERVERS"
|
|
|
|
echo "$NAMESERVERS"
|
|
|
|
echo "$COLOR"
|
|
|
|
|