[GH-ISSUE #243] Requests for unsupported types time out #115

Closed
opened 2026-03-07 22:20:02 +03:00 by kerem · 3 comments
Owner

Originally created by @rushmorem on GitHub (Oct 21, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/243

For example

$ dig @localhost -p 5050 CAA example.com +tcp

returns the following error message

;; Connection to 127.0.0.1#5050(127.0.0.1) for example.com failed: connection refused.

NB: This is from a minimal custom server based on version 0.12.0 using an empty Catalog as the request handler.

Originally created by @rushmorem on GitHub (Oct 21, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/243 For example ```bash $ dig @localhost -p 5050 CAA example.com +tcp ``` returns the following error message ``` ;; Connection to 127.0.0.1#5050(127.0.0.1) for example.com failed: connection refused. ``` *NB*: This is from a minimal custom server based on version `0.12.0` using an empty `Catalog` as the request handler.
kerem 2026-03-07 22:20:02 +03:00
Author
Owner

@Darkspirit commented on GitHub (Oct 21, 2017):

Maybe at least returning some sort of response for all RFC'd types listed here: https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/record_type.rs#L32 (and keep ignoring unknown types (for some type of DoS protection))?

<!-- gh-comment-id:338420720 --> @Darkspirit commented on GitHub (Oct 21, 2017): Maybe at least returning some sort of response for all RFC'd types listed here: https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/record_type.rs#L32 (and keep ignoring unknown types (for some type of DoS protection))?
Author
Owner

@rushmorem commented on GitHub (Oct 21, 2017):

Aren't we supposed to simply return with NotImp in cases like these?

<!-- gh-comment-id:338424202 --> @rushmorem commented on GitHub (Oct 21, 2017): Aren't we supposed to simply return with [NotImp](https://docs.rs/trust-dns/0.12.0/trust_dns/op/response_code/enum.ResponseCode.html#variant.NotImp) in cases like these?
Author
Owner

@bluejekyll commented on GitHub (Oct 23, 2017):

Thanks for the report. NotImp may not be the best option in this case, it’s prbably better to just return an empty recordset. My guess is that the code is hitting an error on the record type parsing and then bailing on the request.

So that code path should be fixed.

<!-- gh-comment-id:338673720 --> @bluejekyll commented on GitHub (Oct 23, 2017): Thanks for the report. NotImp may not be the best option in this case, it’s prbably better to just return an empty recordset. My guess is that the code is hitting an error on the record type parsing and then bailing on the request. So that code path should be fixed.
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#115
No description provided.