Network protocols

DNS compression pointer

Encode a DNS message offset as a two-byte compression pointer.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Set the top two bits to 11 and store the 14-bit message-relative offset in network byte order.

Offset 12 becomes C0 0C.

Limits

Checks the numeric offset, not the target labels, backward-reference rules or compression loops in an actual message.