3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

linuxコマンドメモ(dig)

Last updated at Posted at 2015-09-06

※記載内容はメモとして作成しているため、修正が必要な部分があるかもしれません。

####digコマンド メモ

指定したホストに対する情報をDNSサーバへ問い合わせを行い、結果を表示する。

書式

$ dig [@DNSサーバ] URL(host・FQDN) [クエリタイプ]

サンプルコマンド

$ dig docokanodareka.jp mx

応答メッセージメモ
HEADER   status:NOERROR → 正常な応答
flags        AUTHORITY:0, ADDITTIONAL:0 → 権威サーバへ問い合わせしない
        ANSWER: 0 → 権威を持たない

AUTHORITY SECTION
権威を持たない場合の回答例)
docokanodareka.jp   86400   IN   NS   docokanons.jp.

権威を持つ場合の回答例)
docokanodareka.jp   86400   IN   MX   docokanoms.jp.

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?