{"action":"created","issue":{"url":"https://api.github.com/repos/tjfontaine/node-dns/issues/52","repository_url":"https://api.github.com/repos/tjfontaine/node-dns","labels_url":"https://api.github.com/repos/tjfontaine/node-dns/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/tjfontaine/node-dns/issues/52/comments","events_url":"https://api.github.com/repos/tjfontaine/node-dns/issues/52/events","html_url":"https://github.com/tjfontaine/node-dns/pull/52","id":15391872,"number":52,"title":"Fix the issue #51 that crashed the server on Linux.","user":{"login":"brnrd","id":987069,"avatar_url":"https://avatars.githubusercontent.com/u/987069?v=3","gravatar_id":"","url":"https://api.github.com/users/brnrd","html_url":"https://github.com/brnrd","followers_url":"https://api.github.com/users/brnrd/followers","following_url":"https://api.github.com/users/brnrd/following{/other_user}","gists_url":"https://api.github.com/users/brnrd/gists{/gist_id}","starred_url":"https://api.github.com/users/brnrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brnrd/subscriptions","organizations_url":"https://api.github.com/users/brnrd/orgs","repos_url":"https://api.github.com/users/brnrd/repos","events_url":"https://api.github.com/users/brnrd/events{/privacy}","received_events_url":"https://api.github.com/users/brnrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-06-11T10:24:39Z","updated_at":"2016-02-18T15:45:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tjfontaine/node-dns/pulls/52","html_url":"https://github.com/tjfontaine/node-dns/pull/52","diff_url":"https://github.com/tjfontaine/node-dns/pull/52.diff","patch_url":"https://github.com/tjfontaine/node-dns/pull/52.patch"},"body":"With this slight change, a Node.js server that imports the module still works with Windows but now works too with Linux.\r\n\r\nThe hosts object contains a _store that's an object containing itself a _store. The access to the second one was missing.\r\n\r\n{ _zone: '.',\r\n  _store: \r\n   { _store: { _store: [Object] },  <----\r\n     _zone: '.',\r\n     _max_keys: undefined,\r\n     _ttl: { length: 0, root: undefined, _comparator: [Function] } },\r\n  purge: [Function] }\r\n\r\nIt would solve the issue #51 and it would be great to push it to NPM as well.\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/tjfontaine/node-dns/issues/comments/185784026","html_url":"https://github.com/tjfontaine/node-dns/pull/52#issuecomment-185784026","issue_url":"https://api.github.com/repos/tjfontaine/node-dns/issues/52","id":185784026,"user":{"login":"fastest963","id":112555,"avatar_url":"https://avatars.githubusercontent.com/u/112555?v=3","gravatar_id":"","url":"https://api.github.com/users/fastest963","html_url":"https://github.com/fastest963","followers_url":"https://api.github.com/users/fastest963/followers","following_url":"https://api.github.com/users/fastest963/following{/other_user}","gists_url":"https://api.github.com/users/fastest963/gists{/gist_id}","starred_url":"https://api.github.com/users/fastest963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastest963/subscriptions","organizations_url":"https://api.github.com/users/fastest963/orgs","repos_url":"https://api.github.com/users/fastest963/repos","events_url":"https://api.github.com/users/fastest963/events{/privacy}","received_events_url":"https://api.github.com/users/fastest963/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T15:45:48Z","updated_at":"2016-02-18T15:45:48Z","body":"@brnrd I'm looking and noticing that the `_store` object is an instance of MemoryStoreExpire which does have a `_store` on it, but it also has a set method so the existing code should be working fine. Can you provide a test case I can run easily to try and debug this?"}}