Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.7 KiB

  1. Commands: (identifiers are shown in uppercase, [] means optional)
  2. NAME - print info about the host/domain NAME using default server
  3. NAME1 NAME2 - as above, but use NAME2 as server
  4. help or ? - print info on common commands; see nslookup(1) for details
  5. set OPTION - set an option
  6. all - print options, current server and host
  7. [no]debug - print debugging information
  8. [no]d2 - print exhaustive debugging information
  9. [no]defname - append domain name to each query
  10. [no]recurse - ask for recursive answer to query
  11. [no]vc - always use a virtual circuit
  12. domain=NAME - set default domain name to NAME
  13. srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
  14. root=NAME - set root server to NAME
  15. retry=X - set number of retries to X
  16. timeout=X - set initial time-out interval to X seconds
  17. querytype=X - set query type, e.g., A,ANY,CNAME,HINFO,MX,NS,PTR,SOA,WKS
  18. type=X - synonym for querytype
  19. class=X - set query class to one of IN (Internet), CHAOS, HESIOD or ANY
  20. server NAME - set default server to NAME, using current default server
  21. lserver NAME - set default server to NAME, using initial server
  22. finger [USER] - finger the optional NAME at the current default host
  23. root - set current default server to the root
  24. ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
  25. -a - list canonical names and aliases
  26. -h - list HINFO (CPU type and operating system)
  27. -s - list well-known services
  28. -d - list all records
  29. -t TYPE - list records of the given type (e.g., A,CNAME,MX, etc.)
  30. view FILE - sort an 'ls' output file and view it with pg
  31. exit - exit the program, EOF (e.g. ^D) also exits