- FIRE=`nslookup ping.ipfire.org | tail -2 | head -1 | cut -d" " -f2`;
- if [ "$FIRE" == "server" ]; then
- #DNS lookup failed use direct ip
- echo "85.88.28.124 gateway" >> /tmp/hosts
- else
+ HOST=`host ping.ipfire.org`;
+ FIRE=`echo $HOST | cut -d" " -f4`;
+ CHK=`echo $HOST | cut -d" " -f3`;
+ if [ "$CHK" == "address" ]; then