P. 1
Samba

Samba

|Views: 167|Likes:
Publicado porNurul Istiqomah

More info:

Published by: Nurul Istiqomah on Dec 14, 2010
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/21/2014

pdf

text

original

nslookupisa utility designed to test DNS lookups. Here’s the simplest form of

nslookup:

$ nslookup computername

This uses DNS to look up the IP address of the computer named computername. It
uses the nameserver identified in /etc/resolv.confto do the work. Sometimes,it’s
desirable to make sure you’re using a good nameserver. In such a case,you can use the
two-argument form:

$ nslookup computername dnsserverIP

Both the one- and two-argument forms can be used to reverse resolve IP addresses into
names. In the two-argument version,the IP to be resolved to a name (reverse DNS
resolution) is the first argument.

Here are examples of single-argument forward and reverse lookups using nslookup:

$ nslookup desk1

Server: mainserv.domain.cxm
Address: 192.168.100.1

TCP/IP Networking Review

CHAPTER3

85

3

T
C
P
/
I
P

N

E
T
W
O
R
K
I
N
G

R

E
V
I
E
W

05 8628 CH03 3/17/00 1:10 PM Page 85

Name: desk1.domain.cxm
Address: 192.168.100.2

$ nslookup 192.168.100.2

Server: mainserv.domain.cxm
Address: 192.168.100.1

Name: desk1.domain.cxm
Address: 192.168.100.2

If it hangs,there’s probably a problem.

Note that there’s also an interactive nslookupmode that runs if it’s given no arguments.
You can research this more on the nslookupman page.

nslookuptests only DNS name resolution. NetBIOS lookups,which are discussed in the
next chapter,are tested with other commands.

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->