nslookup is command-line tool for querying the Domain Name System (DNS) to obtain domain name or IP addressmapping or for any other specific DNS record
Syntax:
C:\Users\User1>nslookup ?
Usage:
nslookup [-opt ...] # interactive mode using default server
nslookup [-opt ...] - server # interactive mode using 'server'
nslookup [-opt ...] host # just look up 'host' using default server
nslookup [-opt ...] host server # just look up 'host' using 'server'
nslookup can be used to find the query using a different server than the default dns server.
>nslookup forexample.com 8.8.8.8 - here the 8.8.8.8 is the public google dns.