I realize it's a one-off, but you could potentially mix lines of output with a script like that.
If you gnu parallel (xargs++) installed - turn that second line into a script (and replace $line with $1).
cat domains.txt | parallel -n 1 -P 50 script.sh