Hi, Can someone explain why do i get the field Length before the field Transaction ID in this DNS queries ? asked 24 Feb '15, 08:33 saeedh |
One Answer:
That's because it's DNS over TCP, and since the DNS content may be (and is, in your case) spread over multiple segments, the protocol needs to announce how many bytes there are in total for reassembly. answered 24 Feb '15, 08:46 Jasper ♦♦ |
so the only change is because its over tcp ? meaning can i get now all dns variants that i would normally get in udp but with the addition of those two bytes ? are those bytes a must in dns over tcp ?
Yes, see RFC 1035 sect 4.2.2 TCP usage:
yes, you get those two bytes only for TCP, and every time. They are a must.