( apostroph3 | 2013. 03. 08., p – 18:43 )


#!/bin/bash
# first=
# second=
# third=
# forth=
# ipaddr=

LOCAL_DNS_SZERVER="192.168.0.254" # a DNS server IP címe

for first in `seq 1 1 255`; do
  for second in `seq 0 1 255`; do      
    for third in `seq 0 1 255`; do
      for forth in `seq 1 1 255`; do
        nslookup "$first.$second.$third.$forth" $LOCAL_DNS_SZERVER
      done
    done
  done
done