NSLOOKUP (TCP/IP)

Lookup IP addresses on a NameServer.

Syntax
  Lookup the ip address of MyHost:

     NSLOOKUP [-option] MyHost
     
  Lookup ip address of MyHost on MyNameServer:
   
     NSLOOKUP [-option] MyHost MyNameServer
   
  Enter "command" mode:
   
     NSLOOKUP

Command Mode options:

 help or ?          - print a list of Command Mode options
 exit or ^C         - exit "command mode" 

 set all            - print options, current server and host
 finger [USER]      - finger the optional USER at the current default host
 MyHost             - print ip address of MyHost
 MyHost MyNameServer - print ip address of MyHost on MyNameServer
 set [no]debug      - print debugging info
 set [no]d2         - print exhaustive debugging info

 set domain=NAME    - set default domain name to NAME
 set root=NAME      - set root server to NAME
 root               - set current default server to the root
 server NAME        - set default server to NAME, using current default server
 lserver NAME       - set default server to NAME, using initial server
 set srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1, N2,...

 set retry=X        - set number of retries to X
 set timeout=X      - set initial time-out interval to X seconds
 set [no]defname    - append domain name to each query
 set [no]recurse    - ask for recursive answer to query
 set [no]search     - use domain search list
 set [no]vc         - always use a virtual circuit
 set class=X        - set query class (for example, IN (Internet), ANY)
 set [no]msxfr      - use MS fast zone transfer
 set ixfrver=X      - current version to use in IXFR transfer request
 set type=X         - set query type 
 set querytype=X    - set query type
                      (e.g. A, ANY, CNAME, MX, NS, PTR, SOA, SRV)

 ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN
                            (and optionally output to FILE)

    -d          -  list all records
    -t TYPE     -  list records of the given Type (for example, A, CNAME, 
                   MX, NS, PTR, and so on)
    -a          -  list Aliases and canonical names.

 view FILE       - sort an 'ls' output file and view it with pg

Examples

Lookup the TXT record for porttest.dns-oarc.net

C:\> nslookup -querytype=TXT -timeout=10 porttest.dns-oarc.net

Lookup time.windows.com:

C:\> nslookup time.windows.com

We are all in the gutter, but some of us are looking at the stars ~ Oscar Wilde (Lady Windermere's Fan 1892)

Related commands

NBTSTAT - Display networking statistics (NetBIOS over TCP/IP).
NETSTAT - Display networking statistics (TCP/IP).
W32TM - Time Service Utility.
TRACERT - Trace route to a remote host.
ViewDNS.info - IP and DNS lookups.
Q200525 - Using nslookup.
network-tools.com - nslookup.


 
Copyright © 1999-2024 SS64.com
Some rights reserved