Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught, unspecified "error" event #18

Open
jeffzimmerlin opened this issue Jan 2, 2017 · 1 comment
Open

Uncaught, unspecified "error" event #18

jeffzimmerlin opened this issue Jan 2, 2017 · 1 comment

Comments

@jeffzimmerlin
Copy link

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',
	'[email protected]',
	'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!

@EmRa228
Copy link

EmRa228 commented Feb 17, 2021

This is my issue too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants