troushoo

Windows の nslookup を用いた2つの DNS のトラブルシューティング Tips

概要

Windows の nslookup を用いた2つの DNS のトラブルシューティング Tips を二つ紹介します。
1. 権限のある回答の調べ方
2. TTL の調べ方

内容

1. 権限のある回答の調べ方
例として、www.google.com の権限のある回答を調べる方法を紹介します。

権限のある回答を調べるために、まず -type=soa オプションをつけ SOA レコードを調べます。ここで出力された primary name server をメモしておきます。


調べた primary name server に対し、www.google.com の名前解決を実施します。
すると、権限のある回答を調べることができます。


2. TTL の調べ方
-debug オプションをつけることで TTL を調べることができます。

以下の例では A レコードの TTL が 1 分 20 秒であることがわかります。

C:\>nslookup -debug www.google.com
------------
Got answer:
     HEADER:
         opcode = QUERY, id = 1, rcode = NOERROR
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
         2.0.0.10.in-addr.arpa, type = PTR, class = IN
     ANSWERS:
     ->  2.0.0.10.in-addr.arpa
         name = ip-10-0-0-2.ap-northeast-1.compute.internal
         ttl = 87 (1 min 27 secs)

------------
サーバー:  ip-10-0-0-2.ap-northeast-1.compute.internal
Address:  10.0.0.2

------------
Got answer:
     HEADER:
         opcode = QUERY, id = 2, rcode = NXDOMAIN
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
         www.google.com.ap-northeast-1.compute.internal, type = A, class = IN

------------
------------
Got answer:
     HEADER:
         opcode = QUERY, id = 3, rcode = NXDOMAIN
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
         www.google.com.ap-northeast-1.compute.internal, type = AAAA, class = IN

------------
------------
Got answer:
     HEADER:
         opcode = QUERY, id = 4, rcode = NXDOMAIN
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
         www.google.com.compute.internal, type = A, class = IN

------------
------------
Got answer:
     HEADER:
         opcode = QUERY, id = 5, rcode = NXDOMAIN
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
         www.google.com.compute.internal, type = AAAA, class = IN

------------
------------
Got answer:
     HEADER:
         opcode = QUERY, id = 6, rcode = NOERROR
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
         www.google.com, type = A, class = IN
     ANSWERS:
     ->  www.google.com
         internet address = 172.217.175.100
         ttl = 80 (1 min 20 secs)

------------
権限のない回答:
------------
Got answer:
     HEADER:
         opcode = QUERY, id = 7, rcode = NOERROR
         header flags:  response, want recursion, recursion avail.
         questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
         www.google.com, type = AAAA, class = IN
     ANSWERS:
     ->  www.google.com
         AAAA IPv6 address = 2404:6800:4004:801::2004
         ttl = 24 (24 secs)

------------
名前:    www.google.com
Addresses:  2404:6800:4004:801::2004
           172.217.175.100




情報元
Check DNS records on Windows with nslookup (英語)


  1. 2020/03/23(月) 23:54:37|
  2. ネットワーク
  3. | トラックバック:0
  4. | コメント:0
<<グループポリシーの基本設定を簡単にエクスポート / インポートする方法 | ホーム | 削除してしまった実行ファイルを /proc から復元>>

コメント

コメントの投稿


管理者にだけ表示を許可する

トラックバック

トラックバック URL
https://troushoo.blog.fc2.com/tb.php/424-41b17828
この記事にトラックバックする(FC2ブログユーザー)

スポンサーリンク

最新記事

月別アーカイブ

カテゴリ

ツール (114)
ネットワーク (54)
Wireshark (48)
AD (36)
Linux (45)
WinDbg (46)
SOS・Psscor2/Psscor4 (25)
Visual Studio (56)
Tips (32)
コンテナ (4)
Azure (17)
.NET (24)
Python (9)
Java (5)
SQL (6)
事例 (1)
英語 (1)
About Me (1)
未分類 (0)

全記事表示リンク

全ての記事を表示する

検索フォーム

RSSリンクの表示

リンク

このブログをリンクに追加する