{"_id":"native-dns-packet","_rev":"2906393","name":"native-dns-packet","description":"Raw DNS Packet Parsing and Writing","dist-tags":{"0.1.0":"0.1.0","latest":"0.1.1"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"time":{"modified":"2022-12-14T07:20:34.000Z","created":"2013-03-24T02:50:12.557Z","0.1.1":"2014-10-05T23:41:34.025Z","0.1.0":"2014-10-05T23:37:30.815Z","0.0.4":"2014-04-15T14:51:53.603Z","0.0.3":"2013-05-25T22:49:19.608Z","0.0.2":"2013-05-20T02:09:58.138Z","0.0.1":"2013-03-24T02:50:12.557Z"},"users":{"silverwind":true},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"versions":{"0.1.1":{"name":"native-dns-packet","version":"0.1.1","authors":["Timothy J Fontaine <tjfontaine@gmail.com> (http://atxconsulting.com)","Greg Slepak <contact@taoeffect.com> (https://twitter.com/taoeffect)","Matthieu Rakotojaona"],"description":"Raw DNS Packet Parsing and Writing","keywords":["dns","parsing"],"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"main":"index.js","engines":{"node":">= 0.5.0"},"license":"MIT","scripts":{"test":"tap ./test/*.js"},"dependencies":{"buffercursor":">= 0.0.12","ipaddr.js":">= 0.1.1"},"devDependencies":{"tap":">= 0.4.3"},"gitHead":"296bfe5337b57e93a605838a4da48924e8d46e4b","_id":"native-dns-packet@0.1.1","_shasum":"97da90570b8438a00194701ce24d011fd3cc109a","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"taoeffect","email":"contact@taoeffect.com"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"dist":{"shasum":"97da90570b8438a00194701ce24d011fd3cc109a","size":11416,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/native-dns-packet/download/native-dns-packet-0.1.1.tgz"},"directories":{},"publish_time":1412552494025,"_hasShrinkwrap":false,"_cnpm_publish_time":1412552494025,"_cnpmcore_publish_time":"2021-12-16T21:11:12.164Z"},"0.1.0":{"name":"native-dns-packet","version":"0.1.0","authors":["Timothy J Fontaine <tjfontaine@gmail.com> (http://atxconsulting.com)","Greg Slepak <contact@taoeffect.com> (https://twitter.com/taoeffect)","Matthieu Rakotojaona"],"description":"Raw DNS Packet Parsing and Writing","keywords":["dns","parsing"],"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"main":"index.js","engines":{"node":">= 0.5.0"},"license":"MIT","scripts":{"test":"tap ./test/*.js"},"dependencies":{"buffercursor":">= 0.0.12","ipaddr.js":">= 0.1.1"},"devDependencies":{"tap":">= 0.4.3"},"gitHead":"5cc112ed4a2a6e0397cdd33984a98e035db21ce5","_id":"native-dns-packet@0.1.0","_shasum":"be39ae9593acd0f8bcb5e4a97b3faa97dc64a3e9","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"taoeffect","email":"contact@taoeffect.com"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"dist":{"shasum":"be39ae9593acd0f8bcb5e4a97b3faa97dc64a3e9","size":11395,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/native-dns-packet/download/native-dns-packet-0.1.0.tgz"},"directories":{},"publish_time":1412552250815,"_hasShrinkwrap":false,"_cnpm_publish_time":1412552250815,"_cnpmcore_publish_time":"2021-12-16T21:11:12.397Z"},"0.0.4":{"name":"native-dns-packet","version":"0.0.4","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"Raw DNS Packet Parsing and Writing","keywords":["dns","parsing"],"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"main":"index.js","engines":{"node":">= 0.5.0"},"scripts":{"test":"tap ./test/*.js"},"dependencies":{"buffercursor":">= 0.0.5","ipaddr.js":">= 0.1.1"},"devDependencies":{"tap":">= 0.4.3"},"_id":"native-dns-packet@0.0.4","dist":{"shasum":"f57355dd898b6dbbc1becfe34536682bf7102408","size":12170,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/native-dns-packet/download/native-dns-packet-0.0.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"directories":{},"publish_time":1397573513603,"_hasShrinkwrap":false,"_cnpm_publish_time":1397573513603,"_cnpmcore_publish_time":"2021-12-16T21:11:12.600Z"},"0.0.3":{"name":"native-dns-packet","version":"0.0.3","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"Raw DNS Packet Parsing and Writing","keywords":["dns","parsing"],"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"main":"index.js","engines":{"node":">= 0.5.0"},"scripts":{"test":"tap ./test/*.js"},"dependencies":{"buffercursor":">= 0.0.5","ipaddr.js":">= 0.1.1"},"devDependencies":{"tap":">= 0.4.3"},"readmeFilename":"README.md","_id":"native-dns-packet@0.0.3","dist":{"shasum":"bbae409504781415b942c7e5a4e65cbc22cb7be1","size":61998,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/native-dns-packet/download/native-dns-packet-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"directories":{},"publish_time":1369522159608,"_hasShrinkwrap":false,"_cnpm_publish_time":1369522159608,"_cnpmcore_publish_time":"2021-12-16T21:11:12.962Z"},"0.0.2":{"name":"native-dns-packet","version":"0.0.2","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"Raw DNS Packet Parsing and Writing","keywords":["dns","parsing"],"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"main":"index.js","engines":{"node":">= 0.5.0"},"scripts":{"test":"tap ./test/*.js"},"dependencies":{"buffercursor":">= 0.0.5","ipaddr.js":">= 0.1.1"},"devDependencies":{"tap":">= 0.4.3"},"readmeFilename":"README.md","_id":"native-dns-packet@0.0.2","dist":{"shasum":"c54d3780f47f1ee2ac70bfd34130e731c29e61f3","size":9082,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/native-dns-packet/download/native-dns-packet-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"directories":{},"publish_time":1369015798138,"_hasShrinkwrap":false,"_cnpm_publish_time":1369015798138,"_cnpmcore_publish_time":"2021-12-16T21:11:13.189Z"},"0.0.1":{"name":"native-dns-packet","version":"0.0.1","author":{"name":"Timothy J Fontaine","email":"tjfontaine@gmail.com","url":"http://atxconsulting.com"},"description":"Raw DNS Packet Parsing and Writing","keywords":["dns","parsing"],"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"repository":{"type":"git","url":"http://github.com/tjfontaine/native-dns-packet.git"},"main":"index.js","engines":{"node":">= 0.5.0"},"scripts":{},"dependencies":{"buffercursor":">= 0.0.5","ipaddr.js":">= 0.1.1"},"devDependencies":{},"readmeFilename":"README.md","_id":"native-dns-packet@0.0.1","dist":{"shasum":"78a3d2c7961bedb6714d155488a933005af4105e","size":5848,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/native-dns-packet/download/native-dns-packet-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"taoeffect","email":"contact@taoeffect.com"},{"name":"tjfontaine","email":""}],"directories":{},"publish_time":1364093412557,"_hasShrinkwrap":false,"_cnpm_publish_time":1364093412557,"_cnpmcore_publish_time":"2021-12-16T21:11:13.398Z"}},"readme":"native-dns-packet\n-----------------\n\n * `Packet.parse(buffer)` returns an instance of `Packet`\n * `Packet.write(buffer, packet)` writes the given packet into the buffer,\ntruncating where appropriate\n\n```javascript\nvar Packet = function () {\n  this.header = {\n    id: 0,\n    qr: 0,\n    opcode: 0,\n    aa: 0,\n    tc: 0,\n    rd: 1,\n    ra: 0,\n    res1: 0,\n    res2: 0,\n    res3: 0,\n    rcode: 0\n  };\n  this.question = [];\n  this.answer = [];\n  this.authority = [];\n  this.additional = [];\n  this.edns_options = [];\n  this.payload = undefined;\n};\n```\n\n## History\n\n###### 0.1.1 - October 5, 2014\n\n- Fixing NPM tagging issue...\n\n###### 0.1.0 - October 2, 2014\n\n- Added TLSA support\n- Fixed EDNS & NAPTR support + deprecates some EDNS fields on Packet\n- Now includes support for forwarding EDNS responses (Packet.edns)\n- Added many TODOs with suggested improvements\n- Added many links to GH issues and RFCs\n- Cleaned up code a bit to better please linters\n- Added deprecation notices (see parseOpt)\n- Handle unhandled RRs on writing packet instead of throwing exception.\n- edns/opt should use BufferCursor.copy (Fixes #11)\n- Updated `package.json` to include all authors\n- Merged tj's `master` branch to add License info\n- Updated README to include history of changes\n","_attachments":{},"homepage":"http://github.com/tjfontaine/native-dns-packet","bugs":{"url":"http://github.com/tjfontaine/native-dns-packet/issues"},"license":"MIT"}