The dig (domain information groper) command is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried.
$ sudo apt install dnsutils
$ dig @8.8.8.8 www.wazaterm.com
$ dig wazaterm.com txt
$ dig AAAA dns.google
$ dig -x 8.8.8.8
$ dig gmail.com MX
$ dig www.wazaterm.com