PHP:
prepare(\"SELECT * FROM `users`\"); $stmt->execute(); $result = $stmt->get_result(); //
I just changed @Jotne's answer for "for loop".
for i in `seq 11 20`; do host myserver-$i | awk -v i="$i" '{print "myserver-"i" " $4}'; done