I've recently encountered an issue with the library as shown in the following error snippet:
There was a client error: ProtocolError: function () {
return msg || name;
}
/home/ubuntu/dnsd/node_modules/node-named/lib/server.js:87
query.respond = function respond() {
^
TypeError: Cannot set property 'respond' of undefined
at Socket.<anonymous> (/home/ubuntu/dnsd/node_modules/node-named/lib/server.js:87:31)
at Socket.EventEmitter.emit (events.js:98:17)
at UDP.onMessage (dgram.js:437:8)
My assumption is that Query.parse() may have thrown an exception. It seems possible, via protocol.decode() when it encounters an invalid DNS record type.
I have implemented a possible fix on my fork; the query event will not be emitted if there is no query object returned.
Hello trevoro,
Thanks for writing this library! =)
I've recently encountered an issue with the library as shown in the following error snippet:
My assumption is that
Query.parse()
may have thrown an exception. It seems possible, viaprotocol.decode()
when it encounters an invalid DNS record type.I have implemented a possible fix on my fork; the
query
event will not be emitted if there is no query object returned.Please see my pull request for details.