Você pode usar o seguinte script:
#!/bin/sh
for domain in $@; do
host $domain | grep "has address" | awk '{print $1"\t"$4}'
done
Uso: ./script www.domain1.com domain2.com ...
Por exemplo:
$ ./script.sh www.google.com yahoo.com www.askubuntu.com google.ro www.google.com 173.194.40.81 www.google.com 173.194.40.84 www.google.com 173.194.40.82 www.google.com 173.194.40.83 www.google.com 173.194.40.80 yahoo.com 98.138.253.109 yahoo.com 206.190.36.45 yahoo.com 98.139.183.24 askubuntu.com 198.252.206.24 google.ro 173.194.35.31 google.ro 173.194.35.23 google.ro 173.194.35.24