Skip to content

Uncaught, unspecified "error" event #18

Description

@jeffzimmerlin

Hello,
When running dnsd in production, we occasionally get this error:

events.js:165
throw err;
^

Error: Uncaught, unspecified "error" event. (Error processing request)
at Server.emit (events.js:163:17)
at Server.on_udp (/usr/local/lib/node_modules/dnsd/server.js:177:10)
at Socket.<anonymous> (/usr/local/lib/node_modules/dnsd/server.js:45:54)
at emitTwo (events.js:106:13)
at Socket.emit (events.js:191:7)
at UDP.onMessage (dgram.js:540:8)

It happens about once a day, sometimes more.

Here's a simplified version of our app:

var dnsd = tk.require('dnsd');

var dns_server = dnsd.createServer(
	function(req, res){
		try{
			//var hostname = <insert random app logic>;

			if(question.type=='A'){
				res.answer.push({
					name: hostname,
					type: 'A',
					data: ip,
					ttl: 604800
				});
			}
			res.end();
		}
		catch(e){
			res.end();
		}
	}
)
.zone(
	'ourdomain.com',
	'ns1.ourdomain.com',
	'support@ourdomain.com',
	'now',
	'2h',
	'30m',
	'2w',
	'52w'
)
.listen(53);

Is this an issue with dnsd? Or is there something we should be doing differently in our app code?

Thanks so much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions