diff --git a/dig b/dig new file mode 100644 index 0000000..e69de29 diff --git a/node_modules/dns-js/lib/dnspacket.js b/node_modules/dns-js/lib/dnspacket.js index f29c554..bcca8d3 100644 --- a/node_modules/dns-js/lib/dnspacket.js +++ b/node_modules/dns-js/lib/dnspacket.js @@ -18,6 +18,8 @@ var SECTION_NAMES = [ ]; var ALL_SECTION_NAMES = ['question'].concat(SECTION_NAMES); +// parses through the flags + function parseFlags(val, packet) { packet.header.qr = (val & 0x8000) >> 15; packet.header.opcode = (val & 0x7800) >> 11; diff --git a/parse-binary-test.js b/parse-binary-test.js index 6b906d0..6be02be 100644 --- a/parse-binary-test.js +++ b/parse-binary-test.js @@ -53,6 +53,8 @@ return binString; var str = binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100'); console.log(str); + +parse //translates to "Aren't"