A great tool to query DNS information is nslookup which is part of the Bind-utils package. This tool will provide you with the IP addresses for given host names or a host name for a given IP address. To install run the following command.
# yum install bind
Once installed, you can query a DNS name server like this.
# nslookup www.google.com
# nslookup 10.51.3.10