This command displays domain name for given IP address and displays IP address for given domain name. It also performs DNS lookups related to DNS query.
Look at the above snapshot, on entering domain name we got IP address and on entering IP address we got domain name.
This command helps to find DNS resource records like SOA, NS, A, PTR, CNAME, MX, SRV.
Look at the above snapshot, we have displayed different DNS resource records.