When I need to check twenty hostnames, I do not want to type twenty commands. dig can read its queries from a file.
printf 'example.com A\nexample.org MX\nexample.net TXT\n' > names.txt
dig -f names.txt +noall +answer
With -f, dig reads one query per line, written the same way as on the command line, including a record type and options like @server. Combine it with +noall +answer to get a compact list. Empty lines and lines that start with # or ; are skipped, so you can keep notes in the file. Queries run one after another, so a long file against a slow resolver takes a while.
Further reading: dig manual page
Going deeper: Guide: dig for beginners, look up DNS records and read the answer