Geeting IP from Domain List

dig +short -f whitelist_update.txt | xargs | sed -e 's/ /,/g'