Closed n00b110 closed 5 years ago
These are examples to use DNS attribute.
You can set a number to opcode
which is not defined as a mnemonic. But when you set it as a String, you have to use an existing mnemonic.
This is the same for rcode
attribute (refused
is not 0xa value).
Maybe the doc is not explicit enough...
@sdaubert So was the 0xe
value set in the docs was just an example, and not an actual query number?
@n00b110 an example showing that #opcode may be set as an integer (or as a string as in line below).
But it seems this example is not understandable. I will update it.
@sdaubert Thanks!
@sdaubert @picatz I was skimming across the PacketGen::Header::DNS docs, and I came across a possible typo: In the docs, the
dns.opcode
was set to0xe
which in decimal is equivalent to the number 14. I researched into this and discovered that all opcodes 11-15 are unused. My source is right here , and the screenshot is below: