subdomains.sh 133 B

123456789
  1. #!/bin/bash
  2. # $1 filename with names of subdoman
  3. # $2 main domain
  4. for name in $(cat $1);
  5. do
  6. host $name.$2 | grep "address"
  7. done