tutorial-1----Page:10
1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47 

DNS RR wire format
Owner name (domain name)
Encoded as sequence of labels
Each label contains
Length (1 byte)
Name (n bytes [1..63])
ogud.com ? 04ogud03com00
Type : MX, A, AAAA, NS …
CLASS: IN (other classes exist but not global)
TTL: Time To Live in a cache
RL: RD LENGTH: size of RDATA
RDATA: The contents of the RR
Binary blob, no TLV.
+------------------+-----+------+--------+----+-----------+
+ Domain name |type | class| TTL | RL | RDATA |
+------------------+-----+------+--------+----+-----------+
2 2 4 2
PPT Version