for domain in `cat domain.txt`; do echo "---- $domain ----"; dig cname +noall +answer $domain echo $?;done