dig +short answers the DNS question without the essay
nslookup and plain dig print a 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.comComparing the answer from your resolver against a public one is the fastest way to spot stale DNS during a migration.
shelloperations