Книга: Fedora™ Unleashed, 2008 edition

nslookup

nslookup

A command-line utility, nslookup can be used in an interactive or noninteractive manner to query DNS nameservers. Note that nslookup is outdated; try using dig instead.

Here's an example of a forward lookup using nslookup:

$ nslookup www.pearson.com
Server:  192.168.0.1
Address: 192.168.0.1#53
Non-authoritative answer:
Name: www.pearson.com Address: 195.69.212.200

Here's a reverse lookup using nslookup:
nslookup 195.69.212.200
Server:  192.168.2.1
Address: 192.168.2.1#53
Non-authoritative answer:
200.212.69.195.in-addr.arpa name = environment.pearson.com.
200.212.69.195.in-addr.arpa name = www.environment.pearson.com.
200.212.69.195.in-addr.arpa name = booktime.pearson.com.
Authoritative answers can be found from:
212.69.195.in-addr.arpa nameserver = ns2.pearson.com.
212.69.195.in-addr.arpa nameserver = ns.pearson.com.
ns2.pearson.com internet address = 195.69.215.15

Note that using a reverse lookup does not tell you the FQDN of the server using that IP address. To determine that, you have to use the whois client.

Оглавление книги

Оглавление статьи/книги

Генерация: 1.549. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз