nslookup

スポンサーリンク

基本に戻り、nslookupの使い方。
digに慣れていると、とてもスッキリしたnslookupの機能を忘れてしまうので覚え書。

方法1:
nslookup domain.com

方法2:
nslookup[enter]
>server ns1.domain.com  でサーバを指定
>set type=mx  で問合せタイプを指定
>domain.com で問合せ実行。

実験:google.com
———————
sh-3.2# nslookup google.com
Server:         202.216.224.30
Address:        202.216.224.30#53

Non-authoritative answer:
Name:   google.com
Address: 66.249.89.104
Name:   google.com
Address: 66.249.89.99

sh-3.2#
sh-3.2# nslookup
> set type=mx
> google.com
Server:         202.216.224.30
Address:        202.216.224.30#53

Non-authoritative answer:
google.com      mail exchanger = 200 google.com.s9a2.psmtp.com.
google.com      mail exchanger = 400 google.com.s9b2.psmtp.com.
google.com      mail exchanger = 300 google.com.s9b1.psmtp.com.
google.com      mail exchanger = 100 google.com.s9a1.psmtp.com.

Authoritative answers can be found from:
google.com      nameserver = ns1.google.com.
google.com      nameserver = ns3.google.com.
google.com      nameserver = ns4.google.com.
google.com      nameserver = ns2.google.com.
google.com.s9a1.psmtp.com       internet address = 74.125.148.10
google.com.s9a2.psmtp.com       internet address = 74.125.148.11
google.com.s9b2.psmtp.com       internet address = 74.125.148.14
google.com.s9b1.psmtp.com       internet address = 74.125.148.13
ns4.google.com  internet address = 216.239.38.10
ns3.google.com  internet address = 216.239.36.10
ns2.google.com  internet address = 216.239.34.10
ns1.google.com  internet address = 216.239.32.10
> exit

sh-3.2#

コメント

タイトルとURLをコピーしました