nslookup
DNS domain name information query tool
nslookup has two modes, namely "interactive mode" and "non-interactive mode." In the "interactive mode", the user can query information of various types of hosting, domain name to the domain name server, or output host domain name in the list. In the "non-interactive mode", the user can only obtain a specific name for the host or domain name, or the required information.
Enter the interactive mode, nslookup command input directly, without any parameters, directly enter the interactive mode, where nslookup will connect to the default server domain (i.e. the first /etc/resolv.conf dns address). Or enter nslookup -nameserver / ip. Enter non-interactive mode, directly input nslookup domain name on it.
grammar
nslookup [options] Parameters
parameters: the need to resolve the domain name
Examples
Interactive Mode
Non-interactive mode