dig +short answers the DNS question without the essay
nslookup and plain dig print a whole page for one record.
dig +short api.example.com
dig +short api.example.com @1.1.1.1 # ask a specific resolver
dig +short -t TXT _dmarc.example.comDuring a migration, comparing your resolver's answer with a public one's is the quickest way to spot stale DNS.
shelloperations