[GH-ISSUE #511] Answers should use original query names, not what's in the catalog #211

Closed
opened 2026-03-07 22:49:50 +03:00 by kerem · 4 comments
Owner

Originally created by @rushmorem on GitHub (Jun 12, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/511

  • To preserve case of the original query name
  • So as not to return characters such as * that may be in the catalog
Originally created by @rushmorem on GitHub (Jun 12, 2018). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/511 - To preserve case of the original query name - So as not to return characters such as `*` that may be in the catalog
kerem 2026-03-07 22:49:50 +03:00
Author
Owner

@bluejekyll commented on GitHub (Jun 12, 2018):

Ah, interesting. This may be in a bit of conflict with the current model of Iterators used for response collection.

Basically I converted the return path to not clone on any return, and Records carry the Name from the server.

<!-- gh-comment-id:396616055 --> @bluejekyll commented on GitHub (Jun 12, 2018): Ah, interesting. This may be in a bit of conflict with the current model of Iterators used for response collection. Basically I converted the return path to not clone on any return, and Records carry the Name from the server.
Author
Owner

@rushmorem commented on GitHub (Jun 12, 2018):

Yeah, I noticed. That should help with memory usage.

<!-- gh-comment-id:396634653 --> @rushmorem commented on GitHub (Jun 12, 2018): Yeah, I noticed. That should help with memory usage.
Author
Owner

@bluejekyll commented on GitHub (Jun 12, 2018):

yes... but it’s probably going to make fixing this a challenge is my point. The easiest place to do this replacement will be close to serialization time...

Maybe there’s an easy wrapper type that can be placed on all answer records that has the associated query? And that can be used for serialization? It could be applied with a map function on the record set lookup...

<!-- gh-comment-id:396642214 --> @bluejekyll commented on GitHub (Jun 12, 2018): yes... but it’s probably going to make fixing this a challenge is my point. The easiest place to do this replacement will be close to serialization time... Maybe there’s an easy wrapper type that can be placed on all answer records that has the associated query? And that can be used for serialization? It could be applied with a map function on the record set lookup...
Author
Owner

@bluejekyll commented on GitHub (Apr 9, 2019):

Not sure when exactly this was fixed, but original queries are returned in the response now.

<!-- gh-comment-id:481443329 --> @bluejekyll commented on GitHub (Apr 9, 2019): Not sure when exactly this was fixed, but original queries are returned in the response now.
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#211
No description provided.