Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

DNS (dns)

下位レイヤからの到達

下位レイヤ判別フィールド値
udpdst_port / src_port53 (0x0035)

フィールド

フィールド型既定値Auto説明
iduint(16)4660クエリ識別子 (応答にコピーされる)。
qrenum(1)0 (query)クエリ (0) または応答 (1)。
opcodeenum(4)0 (query)クエリ種別 (0 = 標準クエリ、4 = NOTIFY、5 = UPDATE)。
aauint(1)0権威応答フラグ。
tcuint(1)0切り詰め (トランケーション) フラグ。
rduint(1)1再帰要求フラグ。
rauint(1)0再帰可能フラグ。
zuint(1)0予約ビット (0 でなければならない)。
aduint(1)0認証済みデータフラグ (DNSSEC)。
cduint(1)0検証無効フラグ (DNSSEC)。
rcodeenum(4)0 (no_error)応答コード (0 = NOERROR、3 = NXDOMAIN など)。
qdcountuint(16)1質問セクションのエントリ数。
ancountuint(16)0回答セクションのリソースレコード数。
nscountuint(16)0権威セクションのリソースレコード数。
arcountuint(16)0追加セクションのリソースレコード数。
sectionsbytes — PDU の残りすべて07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 00 01 00 01質問 / 回答 / 権威 / 追加セクション (長さ付きラベル形式の名前)。不透明なオクテット列。

qr

値名前
0query
1response

opcode

値名前
0query
1iquery
2status
4notify
5update

rcode

値名前
0no_error
1format_error
2server_failure
3nx_domain
4not_implemented
5refused

制約

レベル規則
警告z が 0
警告ヘッダとペイロードが 512 オクテット以下

サンプルテンプレート

  • dns-query — templates/protocols/app/dns-query.wpg.yaml
  • dns-response — templates/protocols/app/dns-response.wpg.yaml