Protocol.Dns.Header
A parsed DNS packet header
Summary↑
aa_name(aa) | Is this response authoritative? |
opcode_name(opcode) | What is the op code of this DNS packet? |
qr_name(qr) | Is this a query or a response? |
ra_name(ra) | Is recursion available? |
rcode_name(rcode) | What is the r code of this DNS packet? |
rd_name(rd) | Is recursion desired? |
tc_name(tc) | Is this response truncated? |
z_name(z) | The first bit is reserved. The second bit indciates if the response was authenticated or not. The third bit indciates if the data was authenticated or not |
Types ↑
t :: %Protocol.Dns.Header{id: binary, qr: bitstring, opcode: bitstring, aa: bitstring, tc: bitstring, rd: bitstring, ra: bitstring, z: bitstring, rcode: bitstring, qdcnt: non_neg_integer, ancnt: non_neg_integer, nscnt: non_neg_integer, arcnt: non_neg_integer}
Functions
Specs:
- aa_name(binary) :: :NOT_AUTHORITATIVE | :AUTHORITATIVE | :""
Is this response authoritative?
Specs:
- opcode_name(non_neg_integer) :: :QUERY | :STATUS | :NOTIFY | :UPDATE | :""
What is the op code of this DNS packet?
Specs:
- qr_name(binary) :: :QUERY | :ANSWER
Is this a query or a response?
Specs:
- ra_name(binary) :: :NO_RECURSION_AVAILABLE | :RECURSION_AVAILABLE | :""
Is recursion available?
Specs:
- rcode_name(non_neg_integer) :: :atom
What is the r code of this DNS packet?
Specs:
- rd_name(binary) :: :NO_RECURSION_DESIRED | :RECURSION_DESIRED | :""
Is recursion desired?
Specs:
- tc_name(binary) :: :NOT_TRUNCATED | :TRUNCATED | :""
Is this response truncated?
Specs:
- z_name(binary) :: :atom
The first bit is reserved. The second bit indciates if the response was authenticated or not. The third bit indciates if the data was authenticated or not.