IZBORNIK HOME FORUM ACCESS EXCEL WORD  
 

HOME

   
1 UVOD
2 CMD sintaksa i XP naredbeni interpreter
3 Parametri i Prekidači
4 Kretanje pomoću tipki
5 Podešavanje prozora
6 Zamjenski znakovi
7 Editiranje TXTdatoteka
8 Posebni simboli u CMD naredbi
9 BATCH datoteke u CMD
10 HELP u CMD prozoru
11 ERROR u CMD prozoru
 

-- NAREDBE U  CMD-u --

  ASSOC
  AT
  ATTRIB
  BREAK
  CACLS
  CALL
  CD
  CHCP
  CHDIR
  CHKDSK
  CHKNTFS
  CLS
  CLIP
  CMD
  COLOR
  COMP
  COMPACT
  CONVERT
  COPY
  DATE
  DEL
  DIR
  DISKCOMP
  DISKCOPY
  DOSKEY
  ECHO
  ENDLOCAL
  ERASE
  EXIT
  FC
  FIND
  FINDSTR
  FOR
  FORMAT
  FTYPE
  GOTO
  GRAFTABL
  HELP
  IF
  LABEL
  MD
  MKDIR
  MODE
  MORE
  MOVE
  PATH
  PAUSE
  POPD
  PRINT
  PROMPT
  PUSHD
  RD
  RECOVER
  REM
  REN
  RENAME
  REPLACE
  RMDIR
  SET
  SETLOCAL
  SHIFT
  SORT
  START
  SUBST
  TIME
  TITLE
  TREE
  TYPE
  VER
  VERIFY
  VOL
  XCOPY
   
12 PING
13 IPCONFIG
14 NETSTAT
15 ROUTE
16 NSLOOKUP
17 ARP
18 TRACERT
19 TELNET
20 NET Commands
   
  .

NAREDBENO SUČELJE (Command Prompt line)

NSLOOKUP

Search This Web Site

Adsense sponzor



 




Program nslookup služi za upite Name Serverima o nekoj domeni ili hostu i ima svoj prompt kao i podnaredbe ( subcommands)

Nslookup

Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. Before using this tool, you should be familiar with how DNS works. The Nslookup command-line tool is available only if you have installed the TCP/IP protocol.

Syntax

nslookup [-SubCommand ...] [{ComputerToFind| [-Server]}]

Parameters

-SubCommand ...

Specifies one or more nslookup subcommands as a command-line option. For a list of subcommands, see Related Topics.

ComputerToFind

Looks up information for ComputerToFind using the current default DNS name server, if no other server is specified. To look up a computer not in the current DNS domain, append a period to the name.

-Server

Specifies to use this server as the DNS name server. If you omit -Server, the default DNS name server is used.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • If ComputerToFind is an IP address and the query is for an A or PTR resource record type, the name of the computer is returned. If ComputerToFind is a name and does not have a trailing period, the default DNS domain name is appended to the name. This behavior depends on the state of the following set subcommands: domain, srchlist, defname, and search.
  • If you type a hyphen (-) instead of ComputerToFind, the command prompt changes to nslookup interactive mode.
  • The command-line length must be less than 256 characters.
  • Nslookup has two modes: interactive and noninteractive.

If you need to look up only a single piece of data, use noninteractive mode. For the first parameter, type the name or IP address of the computer that you want to look up. For the second parameter, type the name or IP address of a DNS name server. If you omit the second argument, nslookup uses the default DNS name server.

If you need to look up more than one piece of data, you can use interactive mode. Type a hyphen (-) for the first parameter and the name or IP address of a DNS name server for the second parameter. Or, omit both parameters and nslookup uses the default DNS name server. Following are some tips about working in interactive mode:

    • To interrupt interactive commands at any time, press CTRL+B.
    • To exit, type exit.
    • To treat a built-in command as a computer name, precede it with the escape character (\).
    • An unrecognized command is interpreted as a computer name.
  • If the lookup request fails, nslookup prints an error message. The following table lists possible error messages.

Error message

Description

Timed out

The server did not respond to a request after a certain amount of time and a certain number of retries. You can set the time-out period with the set timeout subcommand. You can set the number of retries with the set retry subcommand.

No response from server

No DNS name server is running on the server computer.

No records

The DNS name server does not have resource records of the current query type for the computer, although the computer name is valid. The query type is specified with the set querytype command.

Nonexistent domain

The computer or DNS domain name does not exist.

Connection refused

-or-

Network is unreachable

The connection to the DNS name server or finger server could not be made. This error commonly occurs with ls and finger requests.

Server failure

The DNS name server found an internal inconsistency in its database and could not return a valid answer.

Refused

The DNS name server refused to service the request.

Format error

The DNS name server found that the request packet was not in the proper format. It may indicate an error in nslookup.

  • For more information about the nslookup command and DNS, see the following resources:
    • Microsoft Windows Resource Kits Web site (http://www.microsoft.com/)
    • Lee, T., Davies, J. 2000. Microsoft Windows 2000 TCP/IP Protocols and Services Technical Reference. Redmond, Washington: Microsoft Press.
    • Albitz, P., Loukides, M. and C. Liu. 1998. DNS and BIND, Third Edition. Sebastopol, California: O'Reilly and Associates, Inc.

Examples

Each command-line option consists of a hyphen (-) followed immediately by the command name and, in some cases, an equal sign (=) and then a value. For example, to change the default query type to host (computer) information and the initial time-out to 10 seconds, type:

nslookup -querytype=hinfo -timeout=10

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output


Adsense sponzor




NSLOOKUP SUBCOMMANDS

•        Nslookup: exit

Exits nslookup.

Syntax

exit

Parameters

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: finger

Connects with the finger server on the current computer.

Syntax

finger [UserName] [{[>] FileName|[>>] FileName}]

Parameters

UserName

Specifies the name of the user to look up.

FileName

Specifies a file name in which to save the output. You can use the greater than (>) and double greater than (>>) characters to redirect the output in the usual manner.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The current computer is defined when a previous lookup for a computer was successful and returned address information. For more information about the set querytype subcommand, see Related Topics.

 

•        Nslookup: help

Displays a short summary of nslookup subcommands.

Syntax

{help|?}

Parameters

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: ls

Lists information for a Domain Name System (DNS) domain.

Syntax

ls [Option] DNSDomain [{[>] FileName|[>>] FileName}]

Parameters

Option

The following table lists valid options.

Option

Description

-t QueryType

Lists all records of the specified type. For a description of QueryType, see the set querytype in Related Topics.

-a

Lists aliases of computers in the DNS domain. This parameter is a synonym for -t CNAME.

-d

Lists all records for the DNS domain. This parameter is a synonym for -t ANY.

-h

Lists CPU and operating system information for the DNS domain. This parameter is a synonym for -t HINFO.

-s

Lists well-known services of computers in the DNS domain. This parameter is a synonym for -t WKS.

DNSDomain

Specifies the DNS domain for which you want information.

FileName

Specifies a file name in which to save the output. You can use the greater than (>) and double greater than (>>) characters to redirect the output in the usual manner.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The default output contains computer names and their IP addresses. When output is directed to a file, hash marks are printed for every 50 records received from the server.

 

•        Nslookup: lserver

Changes the default server to the specified Domain Name System (DNS) domain.

Syntax

lserver DNSDomain

Parameters

DNSDomain

Specifies the new DNS domain for the default server.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The lserver command uses the initial server to look up the information about the specified DNS domain. This is in contrast to the server command, which uses the current default server.

 

•        Nslookup: root

Changes the default server to the server for the root of the Domain Name System (DNS) domain name space.

Syntax

root

Parameters

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • Currently, the ns.nic.ddn.mil name server is used. This command is a synonym for lserver ns.nic.ddn.mil. You can change the name of the root server with the set root command.

 

•        Nslookup: server

Changes the default server to the specified Domain Name System (DNS) domain.

Syntax

server DNSDomain

Parameters

DNSDomain

Required. Specifies the new DNS domain for the default server.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The server command uses the current default server to look up the information about the specified DNS domain. This is in contrast to the lserver command, which uses the initial server.

 

•        Nslookup: set

Changes configuration settings that affect how lookups function.

Syntax

set KeyWord[=Value]

Parameters

KeyWord

Identifies subcommands that are derived from the set subcommand. For example, the subcommand set d2 has a keyword of [no]d2. For the list of subcommands that are derived from the set subcommand, see Related Topics.

Value

Specifies the nslookup configuration setting value for each subcommand.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • Use set all to see a listing of the current settings.

 

•        Nslookup: set all

Prints the current values of the configuration settings.

Syntax

set all

Parameters

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • Set all also prints information about the default server and computer (that is, the host).

 

•        Nslookup: set class

Changes the query class. The class specifies the protocol group of the information.

Syntax

set cl[ass]=Class

Parameters

Class

The default class is IN. The following table lists the valid values for this command.

Value

Description

IN

Specifies the Internet class.

CHAOS

Specifies the Chaos class.

HESIOD

Specifies the MIT Athena Hesiod class.

ANY

Specifies any of the previously listed wildcards.

{help | ?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: set d2

Turns exhaustive debugging mode on or off. All fields of every packet are printed.

Syntax

set [no]d2

Parameters

nod2

Turns off exhaustive debugging mode. The default syntax is nod2.

d2

Turns on exhaustive debugging mode.

{help|?}

Displays a short summary of nslookup subcommands

 

•        Nslookup: set debug

Turns debugging mode on or off.

Syntax

set [no]deb[ug]

Parameters

nodeb[ug]

Turns debugging mode off. The default syntax is nodebug.

deb[ug]

Turns debugging mode on.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • With debugging mode turned on, more information is printed about the packet sent to the server and the resulting answer.

 

•        Nslookup: set defname

Appends the default Domain Name System (DNS) domain name to a single component lookup request. A single component is a component that contains no periods.

Syntax

set [no]def[name]

Parameters

nodef[name]

Stops appending the default Domain Name System (DNS) domain name to a single component lookup request.

def[name]

Appends the default Domain Name System (DNS) domain name to a single component lookup request. The default syntax is defname.

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: set domain

Changes the default Domain Name System (DNS) domain name to the name specified.

Syntax

set do[main]=DomainName

Parameters

DomainName

Specifies a new name for the default DNS domain name. The default domain name is the host name.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The default DNS domain name is appended to a lookup request depending on the state of the defname and search options. The DNS domain search list contains the parents of the default DNS domain if it has at least two components in its name. For example, if the default DNS domain is mfg.widgets.com, the search list is named both mfg.widgets.com and widgets.com. Use the set srchlist command to specify a different list and the set all command to display the list.

 

•        Nslookup: set ignore

Ignores packet truncation errors.

Syntax

set [no]ig[nore]

Parameters

noig[nore]

Does not ignore packet truncation errors. The default setting is noignore.

ig[nore]

Ignores packet truncation errors.

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: set port

Changes the default TCP/UDP Domain Name System (DNS) name server port to the value specified.

Syntax

set po[rt]=Port

Parameters

Port

Specifies the new value for the default TCP/UDP DNS name server port. The default port is 53.

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: set querytype

Changes the resource record type for the query.

Syntax

set q[uerytype]=ResourceRecordType

Parameters

ResourceRecordType

Specifies a DNS resource record type. The default resource record type is A. The following table lists the valid values for this command.

Value

Description

A

Specifies a computer's IP address.

ANY

Specifies all types of data.

CNAME

Specifies a canonical name for an alias.

GID

Specifies a group identifier of a group name.

HINFO

Specifies a computer's CPU and type of operating system.

MB

Specifies a mailbox domain name.

MG

Specifies a mail group member.

MINFO

Specifies mailbox or mail list information.

MR

Specifies the mail rename domain name.

MX

Specifies the mail exchanger.

NS

Specifies a DNS name server for the named zone.

PTR

Specifies a computer name if the query is an IP address; otherwise, specifies the pointer to other information.

SOA

Specifies the start-of-authority for a DNS zone.

TXT

Specifies the text information.

UID

Specifies the user identifier.

UINFO

Specifies the user information.

WKS

Describes a well-known service.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The set type command performs the same function as the set querytype command.
  • For more information about resource record types, see Request For Comment (RFC) 1035.

 

•        Nslookup: set recurse

Tells the Domain Name System (DNS) name server to query other servers if it does not have the information.

Syntax

set [no]rec[urse]

Parameters

norec[urse]

Stops the Domain Name System (DNS) name server from querying other servers if it does not have the information.

rec[urse]

Tells the Domain Name System (DNS) name server to query other servers if it does not have the information. The default syntax is recurse.

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: set retry

Sets the number of retries.

Syntax

set ret[ry]=number

Parameters

number

Specifies the new value for the number of retries. The default number of retries is 4.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • When a reply to a request is not received within a certain amount of time, the time-out period is doubled and the request is resent. The retry value controls how many times a request is resent before giving up. You can change the time-out period with the set timeout subcommand.

 

•        Nslookup: set root

Changes the name of the root server used for queries.

Syntax

set ro[ot]=RootServer

Parameters

RootServer

Specifies the new name for the root server. The default value is ns.nic.ddn.mil.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The set root subcommand affects the root subcommand.

 

•        Nslookup: set search

Appends the Domain Name System (DNS) domain names in the DNS domain search list to the request until an answer is received. This applies when the set and the lookup request contain at least one period, but do not end with a trailing period.

Syntax

set [no]sea[rch]

Parameters

nosea[rch]

Stops appending the Domain Name System (DNS) domain names in the DNS domain search list to the request.

sea[rch]

Appends the Domain Name System (DNS) domain names in the DNS domain search list to the request until an answer is received. The default syntax is search.

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: set srchlist

Changes the default Domain Name System (DNS) domain name and search list.

Syntax

Set srchl[ist]=DomainName[/...]

Parameters

DomainName

Specifies new names for the default DNS domain and search list. The default domain name value is based on the host name. You can specify a maximum of six names separated by slashes (/).

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The set srchl command overrides the default DNS domain name and search list of the set domain command. Use the set all command to display the list.

Examples

To set the DNS domain to mfg.widgets.com and the search list to the three names, type:

set srchlist=mfg.widgets.com/mrp2.widgets.com/widgets.com

 

•        Nslookup: set timeout

Changes the initial number of seconds to wait for a reply to a request.

Syntax

set ti[meout]=Number

Parameters

Number

Specifies the number of seconds to wait for a reply. The default number of seconds to wait is 5.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • When a reply to a request is not received within the specified time period, the time-out is doubled and the request is sent again. You can use the set retry command to control the number of retries.

 

•        Nslookup: set type

Changes the resource record type for the query.

Syntax

set ty[pe]=ResourceRecordType

Parameters

ResourceRecordType

Specifies a DNS resource record type. The default resource record type is A. The following table lists the valid values for this command.

Value

Description

A

Specifies a computer's IP address.

ANY

Specifies all types of data.

CNAME

Specifies a canonical name for an alias.

GID

Specifies a group identifier of a group name.

HINFO

Specifies a computer's CPU and type of operating system.

MB

Specifies a mailbox domain name.

MG

Specifies a mail group member.

MINFO

Specifies mailbox or mail list information.

MR

Specifies the mail rename domain name.

MX

Specifies the mail exchanger.

NS

Specifies a DNS name server for the named zone.

PTR

Specifies a computer name if the query is an IP address; otherwise, specifies the pointer to other information.

SOA

Specifies the start-of-authority for a DNS zone.

TXT

Specifies the text information.

UID

Specifies the user identifier.

UINFO

Specifies the user information.

WKS

Describes a well-known service.

{help|?}

Displays a short summary of nslookup subcommands.

Remarks

  • The set type command performs the same function as the set querytype command.
  • For more information about resource record types, see Request For Comment (RFC) 1035.

 

•        Nslookup: set vc

Specifies to use or not use a virtual circuit when sending requests to the server.

Syntax

set [no]v[c]

Parameters

nov[c]

Specifies to never use a virtual circuit when sending requests to the server. The default is novc.

v[c]

Specifies to always use a virtual circuit when sending requests to the server.

{help|?}

Displays a short summary of nslookup subcommands.

 

•        Nslookup: view

Sorts and lists the output of the previous ls subcommand or commands.

Syntax

view FileName

Parameters

FileName

Specifies the name of the file containing output from the previous ls subcommand or commands.

{help|?}

Displays a short summary of nslookup subcommands.

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

 

Adsense sponzor



 




Copyright 2009 - IvanC - ic.ims.hr