All pastes #895103 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-07 15:54 UTC
rendered paste body
#Domain Array
dom[0]="some.domain.com"
dom[1]="other.domain.com"
dom[2]="whatever.domain.com"

for i in ${dom[*]}; do
  host $1.$i 1>/dev/null
    if [[ $? -eq 0 ]];  then
      host $1.$i
    fi
done