dig (domain information groper) 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.
Check what nameservers are reported by dns:
dig domain.tld ns
Check what mailservers are reported by dns:
dig domain.tld mx
Check a specific DNS-Server:
@server.tld domain.tld mx