{"_id":"dns-socket","_rev":"411912","name":"dns-socket","description":"Make low-level DNS requests with retry and timeout support.","dist-tags":{"latest":"4.2.2"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"time":{"modified":"2021-08-04T05:11:18.000Z","created":"2016-02-23T04:34:38.998Z","4.2.2":"2021-05-28T20:33:33.378Z","4.2.1":"2020-07-06T14:49:38.849Z","4.2.0":"2019-02-10T20:25:37.767Z","4.1.2":"2019-01-22T21:55:54.695Z","4.1.1":"2018-08-07T01:08:13.431Z","4.1.0":"2018-07-03T17:07:44.993Z","1.6.2":"2017-06-08T20:46:55.230Z","1.6.1":"2017-02-05T22:16:59.586Z","4.0.0":"2018-06-01T07:37:55.689Z","3.0.0":"2018-02-11T10:20:26.085Z","2.0.0":"2018-01-14T20:48:42.826Z","1.6.3":"2018-01-13T13:25:46.600Z","1.6.0":"2017-02-05T20:18:59.434Z","1.5.0":"2017-02-05T19:51:52.042Z","1.4.2":"2016-09-16T18:41:37.146Z","1.4.1":"2016-02-27T06:38:10.355Z","1.4.0":"2016-02-24T06:18:24.691Z","1.3.0":"2016-02-24T06:12:04.479Z","1.2.0":"2016-02-24T04:16:41.775Z","1.1.2":"2016-02-23T22:58:36.510Z","1.1.1":"2016-02-23T21:39:29.070Z","1.1.0":"2016-02-23T21:34:23.273Z","1.0.0":"2016-02-23T04:34:38.998Z"},"users":{"silverwind":true},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"versions":{"4.2.2":{"name":"dns-socket","version":"4.2.2","description":"Make low-level DNS requests with retry and timeout support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.2.4"},"devDependencies":{"eslint":"^5.12.1","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.15.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","tape":"^4.9.2"},"keywords":["dns","domain","socket","low-level"],"gitHead":"2f0a0b434c5df0d82b0b8004f5ea52df15d890ba","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.2.2","_nodeVersion":"16.1.0","_npmVersion":"6.14.13","dist":{"shasum":"58b0186ec053ea0731feb06783c7eeac4b95b616","size":4412,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.2.2.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.2.2_1622234013228_0.5373639941263495"},"_hasShrinkwrap":false,"publish_time":1622234013378,"_cnpm_publish_time":1622234013378},"4.2.1":{"name":"dns-socket","version":"4.2.1","description":"Make low-level DNS requests with retry and timeout support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.1.2"},"devDependencies":{"eslint":"^5.12.1","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.15.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","tape":"^4.9.2"},"keywords":["dns","domain","socket","low-level"],"gitHead":"cac324f53c3b67e10ad7aad685a3d1f75c957f1a","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.2.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"shasum":"c260f46e5649d1c2476763b78e2ee48f7abef531","size":4407,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.2.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.2.1_1594046978700_0.2680060871511549"},"_hasShrinkwrap":false,"publish_time":1594046978849,"_cnpm_publish_time":1594046978849},"4.2.0":{"name":"dns-socket","version":"4.2.0","description":"Make low-level DNS requests with retry and timeout support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.1.2"},"devDependencies":{"eslint":"^5.12.1","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.15.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","tape":"^4.9.2"},"keywords":["dns","domain","socket","low-level"],"gitHead":"dcb2c6a49a929c1145a41ea22e2d5cf929092ca5","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.2.0","_nodeVersion":"11.7.0","_npmVersion":"6.6.0","dist":{"shasum":"92575505c4c18ac3ad241f4bb3ff4369761557e9","size":4677,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.2.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.2.0_1549830337628_0.16058095910471137"},"_hasShrinkwrap":false,"publish_time":1549830337767,"_cnpm_publish_time":1549830337767},"4.1.2":{"name":"dns-socket","version":"4.1.2","description":"Make low-level DNS requests with retry and timeout support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.1.1"},"devDependencies":{"eslint":"^5.12.1","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.15.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","tape":"^4.9.2"},"keywords":["dns","domain","socket","low-level"],"gitHead":"d8ff2ac992d5cc794378f4aa057a4929f0f71ce6","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.1.2","_nodeVersion":"11.7.0","_npmVersion":"6.6.0","dist":{"shasum":"9c2e9ab112c3a67985aafe806b5e8aae1fd6c3f6","size":4192,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.1.2.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.1.2_1548194154599_0.1913450854811496"},"_hasShrinkwrap":false,"publish_time":1548194154695,"_cnpm_publish_time":1548194154695},"4.1.1":{"name":"dns-socket","version":"4.1.1","description":"Make low-level DNS requests with retry and timeout support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.0.1"},"devDependencies":{"eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tape":"^4.9.1"},"keywords":["dns","domain","socket","low-level"],"files":["index.js"],"gitHead":"222abd74021cf53225b8e0ac0d8a83512cb4ab6e","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.1.1","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"aceacea5a08dc38ea8dec8269636ac8523ddde89","size":4193,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.1.1_1533604093317_0.47608308674915323"},"_hasShrinkwrap":false,"publish_time":1533604093431,"_cnpm_publish_time":1533604093431},"4.1.0":{"name":"dns-socket","version":"4.1.0","description":"Make low-level DNS requests with retry and timeout support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.0.1"},"devDependencies":{"eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tape":"^4.9.1"},"keywords":["dns","domain","socket","low-level"],"files":["index.js"],"gitHead":"e77a4feb0c40bc51f19997cc085dd631148c9599","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"dist":{"shasum":"3fecd911c4aa81cfcda15c67eebbee5f972a6142","size":4172,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.1.0_1530637664927_0.5264510106600839"},"_hasShrinkwrap":false,"publish_time":1530637664993,"_cnpm_publish_time":1530637664993},"1.6.2":{"name":"dns-socket","version":"1.6.2","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"d326d5323cb5adc86f36054ffa775f93b42aaaee","_id":"dns-socket@1.6.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c234432288c3c76cc131f4157faf7423a662304c","size":4100,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.6.2.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket-1.6.2.tgz_1496954814284_0.30038867983967066"},"directories":{},"publish_time":1496954815230,"_cnpm_publish_time":1496954815230,"_hasShrinkwrap":false},"1.6.1":{"name":"dns-socket","version":"1.6.1","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"6260dfaee1ebc6a0d57fb61aa5d2626ada14fe1f","_id":"dns-socket@1.6.1","_shasum":"3f9b29c43184b3332c856e9c34a6a6bf73756bbd","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"dist":{"shasum":"3f9b29c43184b3332c856e9c34a6a6bf73756bbd","size":14583,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.6.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/dns-socket-1.6.1.tgz_1486333019017_0.8288550523575395"},"directories":{},"publish_time":1486333019586,"_cnpm_publish_time":1486333019586,"_hasShrinkwrap":false},"4.0.0":{"name":"dns-socket","version":"4.0.0","description":"Make custom low-level DNS requests from node with retry support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=6"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^5.0.0"},"devDependencies":{"eslint":"^4.19.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.12.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tape":"^4.9.0"},"keywords":["dns","domain","socket","low-level"],"files":["index.js"],"gitHead":"55108a5c70ba51991c0e260a7adcc34d3db6664d","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@4.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"dist":{"shasum":"3e79c8156d4eddae57070131cd13627db471c78e","size":4015,"noattachment":false,"key":"/dns-socket/-/dns-socket-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-4.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_4.0.0_1527838675637_0.16382063808000558"},"_hasShrinkwrap":false,"publish_time":1527838675689,"_cnpm_publish_time":1527838675689},"3.0.0":{"name":"dns-socket","version":"3.0.0","description":"Make custom low-level DNS requests from node with retry support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=4"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^4.1.0"},"devDependencies":{"eslint":"^4.17.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^6.0.0","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","tape":"^4.8.0"},"keywords":["dns","domain","socket","low-level"],"files":["index.js"],"gitHead":"c6a7e8eaa3d5983f6cf2b52436e4decb6aebb05e","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"dist":{"shasum":"3418a3c6309656ebdb3eb0a941811a4fb0b828c5","size":4055,"noattachment":false,"key":"/dns-socket/-/dns-socket-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-3.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket_3.0.0_1518344425389_0.952130646337235"},"_hasShrinkwrap":false,"publish_time":1518344426085,"_cnpm_publish_time":1518344426085},"2.0.0":{"name":"dns-socket","version":"2.0.0","description":"Make custom low-level DNS requests from node with retry support.","author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"homepage":"https://github.com/mafintosh/dns-socket","engines":{"node":">=4"},"scripts":{"test":"eslint --color *.js && tape test.js"},"dependencies":{"dns-packet":"^3.0.1"},"devDependencies":{"eslint":"^4.15.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","tape":"^4.8.0"},"keywords":["dns","domain","socket","low-level"],"files":["index.js"],"gitHead":"dc3a4dd482dae148f387c1e9d4d80140a11e5696","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"_id":"dns-socket@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"dist":{"shasum":"3016edcaeeb3079655959df74316eea519c544b6","size":3773,"noattachment":false,"key":"/dns-socket/-/dns-socket-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket-2.0.0.tgz_1515962921948_0.7455990696325898"},"directories":{},"publish_time":1515962922826,"_cnpm_publish_time":1515962922826,"_hasShrinkwrap":false},"1.6.3":{"name":"dns-socket","version":"1.6.3","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"files":["index.js"],"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"77db9799478f4eb91cb64345e004e25cab92abc9","_id":"dns-socket@1.6.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"5268724fad4aa46ad9c5ca4ffcd16e1de5342aab","size":3652,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.6.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.6.3.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-socket-1.6.3.tgz_1515849946458_0.027453184593468904"},"directories":{},"publish_time":1515849946600,"_cnpm_publish_time":1515849946600,"_hasShrinkwrap":false},"1.6.0":{"name":"dns-socket","version":"1.6.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"c636e909f99e88a674ecf41e7ff3dd403fe0cdc2","_id":"dns-socket@1.6.0","_shasum":"03e5b9c01b6649395a3d6caf5aa6a1354913bcda","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"03e5b9c01b6649395a3d6caf5aa6a1354913bcda","size":4094,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.6.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.6.0.tgz_1486325937599_0.6259719883091748"},"directories":{},"publish_time":1486325939434,"_cnpm_publish_time":1486325939434,"_hasShrinkwrap":false},"1.5.0":{"name":"dns-socket","version":"1.5.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"051b661af5f5ebe2ba4a24113d2cef282598079f","_id":"dns-socket@1.5.0","_shasum":"d6a538390f4f18a43f51081ca59914e0b9208a90","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"d6a538390f4f18a43f51081ca59914e0b9208a90","size":3839,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.5.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/dns-socket-1.5.0.tgz_1486324310296_0.18429589411243796"},"directories":{},"publish_time":1486324312042,"_cnpm_publish_time":1486324312042,"_hasShrinkwrap":false},"1.4.2":{"name":"dns-socket","version":"1.4.2","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"e08490d4f2ce91377624aae52d6d723527d7ebd1","_id":"dns-socket@1.4.2","_shasum":"8e09322c1566e2cb402c322f086dfe69fd0898e5","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"8e09322c1566e2cb402c322f086dfe69fd0898e5","size":3865,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.4.2.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/dns-socket-1.4.2.tgz_1474051295527_0.9570494056679308"},"directories":{},"publish_time":1474051297146,"_cnpm_publish_time":1474051297146,"_hasShrinkwrap":false},"1.4.1":{"name":"dns-socket","version":"1.4.1","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"da3ae4b6285b2e45d81442cc7a19decc10c51712","_id":"dns-socket@1.4.1","_shasum":"dacbd80945ffb96c7923a68d0b46f34f15e284ae","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"dacbd80945ffb96c7923a68d0b46f34f15e284ae","size":3860,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.4.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.4.1.tgz_1456555089252_0.6990667269565165"},"directories":{},"publish_time":1456555090355,"_cnpm_publish_time":1456555090355,"_hasShrinkwrap":false},"1.4.0":{"name":"dns-socket","version":"1.4.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"896522592ab6baeaa7a2b5f77d853559fd3c112a","_id":"dns-socket@1.4.0","_shasum":"6ff23746c0ffb3c814d764400e269b885a1da04c","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"6ff23746c0ffb3c814d764400e269b885a1da04c","size":3861,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.4.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.4.0.tgz_1456294704067_0.8609436876140535"},"directories":{},"publish_time":1456294704691,"_cnpm_publish_time":1456294704691,"_hasShrinkwrap":false},"1.3.0":{"name":"dns-socket","version":"1.3.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"c57f81c0f7d56fae4043361dcad7555f2fd40014","_id":"dns-socket@1.3.0","_shasum":"ba9b68929c3867be05c5aaffcfd7d8cabe5da2e4","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"ba9b68929c3867be05c5aaffcfd7d8cabe5da2e4","size":3795,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.3.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.3.0.tgz_1456294323849_0.12425432004965842"},"directories":{},"publish_time":1456294324479,"_cnpm_publish_time":1456294324479,"_hasShrinkwrap":false},"1.2.0":{"name":"dns-socket","version":"1.2.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"75a7246ae0549f4b167c74127aae110caafd6a98","_id":"dns-socket@1.2.0","_shasum":"558f39e4ea35ca4f7188c2c7427d7821db45f264","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"558f39e4ea35ca4f7188c2c7427d7821db45f264","size":3756,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.2.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/dns-socket-1.2.0.tgz_1456287399747_0.7566464953124523"},"directories":{},"publish_time":1456287401775,"_cnpm_publish_time":1456287401775,"_hasShrinkwrap":false},"1.1.2":{"name":"dns-socket","version":"1.1.2","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"beff51b88bb3054dceb4c1cd63fb4bbdd297b33f","_id":"dns-socket@1.1.2","_shasum":"de162bf09262fe9841f387f89f055497277e1cb1","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"de162bf09262fe9841f387f89f055497277e1cb1","size":3751,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.1.2.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.1.2.tgz_1456268313984_0.3448903679382056"},"directories":{},"publish_time":1456268316510,"_cnpm_publish_time":1456268316510,"_hasShrinkwrap":false},"1.1.1":{"name":"dns-socket","version":"1.1.1","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"dd3e183aae9dbe27eb57bda25939383e9f48788b","_id":"dns-socket@1.1.1","_shasum":"e5184eb3872607619ac26f6b85a9f7ac64db8459","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"e5184eb3872607619ac26f6b85a9f7ac64db8459","size":3733,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.1.1.tgz_1456263566405_0.5201494118664414"},"directories":{},"publish_time":1456263569070,"_cnpm_publish_time":1456263569070,"_hasShrinkwrap":false},"1.1.0":{"name":"dns-socket","version":"1.1.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"6cddaf21076778051717f5b00d19307023766205","_id":"dns-socket@1.1.0","_shasum":"e4dd33a560ce3bbb9577f584d29c822002df80eb","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"e4dd33a560ce3bbb9577f584d29c822002df80eb","size":3708,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.1.0.tgz_1456263260965_0.9100869938265532"},"directories":{},"publish_time":1456263263273,"_cnpm_publish_time":1456263263273,"_hasShrinkwrap":false},"1.0.0":{"name":"dns-socket","version":"1.0.0","description":"Make custom low-level DNS requests from node with retry support.","main":"index.js","dependencies":{"dns-packet":"^1.1.0"},"devDependencies":{"standard":"^6.0.7","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/dns-socket.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"homepage":"https://github.com/mafintosh/dns-socket","gitHead":"4a5226637b3ddba91ab26c9389f68f7072cfff17","_id":"dns-socket@1.0.0","_shasum":"86ebd64971d8422caf305191ef28710a69ea405b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"86ebd64971d8422caf305191ef28710a69ea405b","size":3582,"noattachment":false,"key":"/dns-socket/-/dns-socket-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-socket/download/dns-socket-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/dns-socket-1.0.0.tgz_1456202075857_0.19746498484164476"},"directories":{},"publish_time":1456202078998,"_cnpm_publish_time":1456202078998,"_hasShrinkwrap":false}},"readme":"# dns-socket\n[![](https://img.shields.io/npm/v/dns-socket.svg?style=flat)](https://www.npmjs.org/package/dns-socket) [![](https://img.shields.io/npm/dm/dns-socket.svg)](https://www.npmjs.org/package/dns-socket) [![](https://api.travis-ci.org/mafintosh/dns-socket.svg?style=flat)](https://travis-ci.org/mafintosh/dns-socket)\n\nMake low-level DNS requests with retry and timeout support.\n\n```\nnpm install dns-socket\n```\n\n## Usage\n\n``` js\nconst dnsSocket = require('dns-socket')\nconst socket = dnsSocket()\n\nsocket.query({\n  questions: [{\n    type: 'A',\n    name: 'google.com'\n  }]\n}, 53, '8.8.8.8', (err, res) => {\n  console.log(err, res) // prints the A record for google.com\n})\n```\n\n## API\n\n#### `var socket = dns([options])`\n\nCreate a new DNS socket instance. The `options` object includes:\n\n- `retries` *Number*: Number of total query attempts made during `timeout`. Default: 5.\n- `socket` *Object*: A custom dgram socket. Default: A `'udp4'` socket.\n- `timeout` *Number*: Total timeout in milliseconds after which a `'timeout'` event is emitted. Default: 7500.\n- `maxQueries` *Number*: Each request has an id, this is stored as static sized array. maxQueries is the size of this array, limiting the max number of inflight requests. Default: 10000.\n- `maxRedirects` *Number*: If you query for a single `A` record and get back `CNAME`, the lib will try to follow the chain and resolve the `CNAME` to A. The maximum number of steps is defined by the `maxRedirects`. Default: 0\n- `timeoutChecks` *Number*: Timeouts are checked each `timeoutChecks` ms, for large number of parallel request, you might want to increase this number. Default: `timeout` / 10\n\n#### `socket.on('query', query, port, host)`\n\nEmitted when a dns query is received. The query is a [dns-packet](https://github.com/mafintosh/dns-packet)\n\n#### `socket.on('response', response, port, host)`\n\nEmitted when a dns response is received. The response is a [dns-packet](https://github.com/mafintosh/dns-packet)\n\n#### `var id = socket.query(query, port, [host], [callback])`\n\nSend a dns query. If host is omitted it defaults to `127.0.0.1`. When the remote replies the callback is called with `(err, response, query)` and an response is emitted as well. If the query times out the callback is called with an error.\nThe `host` parameter can be an array, during resolve the lib will randomly select one host.\n\nReturns the query id\n\n#### `socket.response(query, response, port, [host])`\n\nSend a response to a query.\n\n#### `socket.cancel(id)`\n\nCancel a query\n\n#### `socket.bind([port][, address][, onlistening])`\n#### `socket.bind(options, [onlistening])`\n\nBind the underlying udp socket to a specific port. Takes the same arguments as [socket#bind](https://nodejs.org/docs/latest/api/dgram.html#dgram_socket_bind_port_address_callback).\n\n#### `socket.destroy([onclose])`\n\nDestroy the socket.\n\n#### `socket.inflight`\n\nNumber of inflight queries.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/dns-socket","bugs":{"url":"https://github.com/mafintosh/dns-socket/issues"},"license":"MIT"}