DIG
What do you want to query for
Explicitly query another DNS Server
loader

Dig is a cli tool that network administrators use to query DNS servers.

It's a part of the bind-tools package. You can find more information on Bind Homepage or wikipedia.

You can also get this kind of information in php by using dns_get_record function.