|
DNSサーバに名前解決の問い合わせを行う
Vista 7 8 10 機能
DNSサーバに名前解決の問い合わせを行う。対話型と非対話型の2つのモードがある。
非対話型モードは1つのデータのみを検索したい場合に便利である。対話型は正引き・逆引き、Aレコード・NSレコード・MXレコードなどでの各種絞込み検索が可能。再帰検索やイテレイティブ検索、問い合わせ先DNSサーバの指定、デバッグの実行など、様々なオプションがある。 形式
非対話型:nslookup [HostName/IPaddress] (-DNSName)
対話型 :nslookup (option) (HostName/IPaddress) (-DNSName) オプション
コマンド例
実行例 C:\>nslookup k-tanaka.net Server: modemnv-1482fb Address: 192.168.1.1 Non-authoritative answer: Name: k-tanaka.net Address: 124.34.5.60 C:\> C:\>nslookup Default Server: modemnv-1482fb Address: 192.168.1.1 > www.google.co.jp Server: modemnv-1482fb Address: 192.168.1.1 Non-authoritative answer: Name: www.l.google.com Addresses: 209.85.173.104, 209.85.173.147, 209.85.173.99, 209.85.173.103 Aliases: www.google.co.jp, www.google.com > exit C:\>
C:\>nslookup
既定のサーバー: modemnv-1482fb
Address: 192.168.1.1:53
> set type=mx
> google.co.jp
サーバー: modemnv-1482fb
Address: 192.168.1.1:53
権限のない回答:
google.co.jp MX preference = 10, mail exchanger = smtp1.google.com
google.co.jp MX preference = 10, mail exchanger = smtp2.google.com
google.co.jp MX preference = 10, mail exchanger = smtp3.google.com
google.co.jp MX preference = 10, mail exchanger = smtp4.google.com
>
> set d2
> www.google.co.jp
サーバー: modemnv-1482fb
Address: 192.168.1.1:53
------------
SendRequest(), len 34
HEADER:
opcode = QUERY, id = 5, rcode = NOERROR
header flags: query, want recursion
questions = 1, answers = 0, authority records = 0, additional = 0
QUESTIONS:
www.google.co.jp, type = MX, class = IN
------------
------------
Got answer (82 bytes):
HEADER:
opcode = QUERY, id = 5, rcode = NOERROR
header flags: response, want recursion, recursion avail.
questions = 1, answers = 2, authority records = 0, additional = 0
QUESTIONS:
www.google.co.jp, type = MX, class = IN
ANSWERS:
-> www.google.co.jp
type = CNAME, class = IN, dlen = 16
canonical name = www.google.com
ttl = 316055 (3 days 15 hours 47 mins 35 secs)
-> www.google.com
type = CNAME, class = IN, dlen = 8
canonical name = www.l.google.com
ttl = 602949 (6 days 23 hours 29 mins 9 secs)
------------
権限のない回答:
www.google.co.jp
type = CNAME, class = IN, dlen = 16
canonical name = www.google.com
ttl = 316055 (3 days 15 hours 47 mins 35 secs)
www.google.com
type = CNAME, class = IN, dlen = 8
canonical name = www.l.google.com
ttl = 602949 (6 days 23 hours 29 mins 9 secs)
> exit
C:\>
関連ページ netstat ・・・ネットワーク接続状況を確認するtracert ・・・ネットワーク経路をリスト表示する hostname ・・・ホスト名を表示する route ・・・ルーティングテーブルを表示・変更する pathping ・・・ネットワーク経路の品質を調査する | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|