{"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"},"_id":"native-dns-packet@0.0.3","dist":{"shasum":"bbae409504781415b942c7e5a4e65cbc22cb7be1","tarball":"http://registry-npm.ywwl.com/native-dns-packet/download/native-dns-packet-0.0.3.tgz","integrity":"sha512-YGYQ2cSpxcQTz9FM8er5nZjP5+K/JPzAjdigeQiXmjnkZ763Dzfhpnk4rlpP08/6erWRi3PcKDl6lrVxDub03g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpq/eaDVZWl5kvWed6moIF+91YJvPNEnQBH9cV9r8CygIgDjG4bXbGcPpjvo5hVw+vDBJuu68Gn/RGWa8SFdhC+q4="}],"size":61998,"noattachment":false,"key":"/native-dns-packet/-/native-dns-packet-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"tjfontaine","email":"tjfontaine@gmail.com"},"maintainers":[{"name":"tjfontaine","email":"tjfontaine@gmail.com"}],"directories":{},"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","publish_time":1369522159608,"_cnpm_publish_time":1369522159608,"dist-tags":{"0.1.0":"0.1.0","latest":"0.1.1"}}