tjfontaine/node-dns — Issue #14: New code broke old API
Author: abh
Created: 2012-02-28 09:40:37+00:00
State: open

I have to sleep now, so no time to look closer and just a quick message:

Running my "old" code (before using the new request API) on the latest node-dns code errors out with this message:

```
TypeError: Cannot read property 'length' of undefined
at [object Object].handle (/home/ask/monitor/node_modules/native-dns/lib/resolve.js:154:26)
at [object Object]. (/home/ask/monitor/node_modules/native-dns/lib/resolve.js:136:12)
at [object Object].emit (events.js:70:17)
at [object Object].handle (/home/ask/monitor/node_modules/native-dns/lib/request.js:44:10)
at [object Object].handleMessage (/home/ask/monitor/node_modules/native-dns/lib/pending.js:67:13)
at Socket. (/home/ask/monitor/node_modules/native-dns/lib/socket_cache.js:124:20)
at Socket.emit (events.js:70:17)
at UDP.onMessage [as onmessage] (dgram.js:345:10)
```