Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM network protocols command-line interface reference guide.Ver 1.6.pdf
Скачиваний:
30
Добавлен:
23.08.2013
Размер:
1.61 Mб
Скачать

Diagnostic Commands

3.3DNS commands

The commands in this section are:

dnsstats on page 3-18

nslookup on page 3-19.

3.3.1dnsstats

The dnsstats command shows statistics about the DNS Client, and is included in the menu list if DNS_CLIENT and NET_STATS were defined in ipport.h.

Syntax dnsstats

Example

INET> dnsstats

DNS servers:10.0.0.1 0.0.0.0 0.0.0.0 DNS cache:

name: fred.nowhere.com, IP: 10.16.100.31, retry:0, ID:4660, rcode:0, err:0 name: bob.nowhere.com, IP: 172.16.100.23, retry:0, ID:4661, rcode:0, err:0 name: jim.nowhere.com, IP: 0.0.0.0, retry:3, ID:4662, rcode:0, err:0 name: , IP: 0.0.0.0, retry:0, ID:0, rcode:0, err:0

name: , IP: 0.0.0.0, retry:0, ID:0, rcode:0, err:0 name: , IP: 0.0.0.0, retry:0, ID:0, rcode:0, err:0 protocol/implementation runtime errors:4

requests sent:3 replies received:6 usable replies:2 total retries:3 timeouts:0

INET>

Usage

The statistics shown are:

a list of DNS servers that the client is configured to recognize

a listing of the client-side DNS cache (a history of DNS resolutions that the client has performed)

general DNS statistics.

3-18

Copyright © 2000-2001 ARM Limited. All rights reserved.

ARM DUI 0145B

Diagnostic Commands

3.3.2nslookup

The nslookup command performs a query against the known DNS servers for the specified host name.

This command is included in the menu list if DNS_CLIENT was defined in ipport.h.

Syntax

nslookup hostname

where:

hostname Is looked for in the DNS database, and its IP addresses (if any) returned.

Example

INET> nslookup pc4.nowhere.com gethostbyname() succeeded h_name is pc4.nowhere.com h_addrtype = 2

h_length = 4 h_addr_list are

10.16.100.31

INET>

ARM DUI 0145B

Copyright © 2000-2001 ARM Limited. All rights reserved.

3-19