[GH-ISSUE #348] Timeouts #455

Closed
opened 2026-03-15 22:33:45 +03:00 by kerem · 5 comments
Owner

Originally created by @DemiMarie on GitHub (Feb 18, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/348

trust-dns should enforce timeouts on all operations. Web frameworks like Gotham and Iron manage this — trust-dns should too.

Originally created by @DemiMarie on GitHub (Feb 18, 2018). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/348 `trust-dns` should enforce timeouts on all operations. Web frameworks like Gotham and Iron manage this — `trust-dns` should too.
kerem 2026-03-15 22:33:45 +03:00
Author
Owner

@bluejekyll commented on GitHub (Feb 18, 2018):

Thank you for the report. What interfaces are you using in which this is not true? All the high-level APIs for the Client and Resolver have timeouts on all operations.

<!-- gh-comment-id:366537741 --> @bluejekyll commented on GitHub (Feb 18, 2018): Thank you for the report. What interfaces are you using in which this is not true? All the high-level APIs for the Client and Resolver have timeouts on all operations.
Author
Owner

@DemiMarie commented on GitHub (Feb 18, 2018):

Server. I was referring to the Server TCP Denial of Service mentioned in the README.

<!-- gh-comment-id:366538970 --> @DemiMarie commented on GitHub (Feb 18, 2018): Server. I was referring to the Server TCP Denial of Service mentioned in the README.
Author
Owner

@bluejekyll commented on GitHub (Feb 18, 2018):

Ah, I believe the server currently has timeouts on all inbound requests, here is TCP:

https://github.com/bluejekyll/trust-dns/blob/master/server/src/server/server_future.rs#L108-L123

and TLS:

https://github.com/bluejekyll/trust-dns/blob/master/server/src/server/server_future.rs#L191-L206

UDP doesn't have timeouts as that's fire and forget. Do you have any other areas you're concerned about?

<!-- gh-comment-id:366539700 --> @bluejekyll commented on GitHub (Feb 18, 2018): Ah, I believe the server currently has timeouts on all inbound requests, here is TCP: https://github.com/bluejekyll/trust-dns/blob/master/server/src/server/server_future.rs#L108-L123 and TLS: https://github.com/bluejekyll/trust-dns/blob/master/server/src/server/server_future.rs#L191-L206 UDP doesn't have timeouts as that's fire and forget. Do you have any other areas you're concerned about?
Author
Owner

@bluejekyll commented on GitHub (Feb 18, 2018):

BTW, that DOS comment in the Readme is specifically about AXFR operations. I don't have the authorization logic tied to the authentication, at the moment, which is both a potential DOS because of the potential message sizes in AXFR and then also a visibility issue.

<!-- gh-comment-id:366540755 --> @bluejekyll commented on GitHub (Feb 18, 2018): BTW, that DOS comment in the Readme is specifically about AXFR operations. I don't have the authorization logic tied to the authentication, at the moment, which is both a potential DOS because of the potential message sizes in AXFR and then also a visibility issue.
Author
Owner

@bluejekyll commented on GitHub (Mar 5, 2018):

I'm going to close this, unless there is something more that you want to see here.

<!-- gh-comment-id:370471207 --> @bluejekyll commented on GitHub (Mar 5, 2018): I'm going to close this, unless there is something more that you want to see here.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#455
No description provided.