[GH-ISSUE #1046] Asking for examples for DNS client with customized underlying connections #592

Open
opened 2026-03-15 23:20:12 +03:00 by kerem · 1 comment
Owner

Originally created by @zonyitoo on GitHub (Mar 19, 2020).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1046

How to build DNS clients with customized underlying connections, for example, send DNS queries via proxies.

Could you provide some examples or guides? I found very confusing about about the relations of those structs and traits.

Originally created by @zonyitoo on GitHub (Mar 19, 2020). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1046 How to build DNS clients with customized underlying connections, for example, send DNS queries via proxies. Could you provide some examples or guides? I found very confusing about about the relations of those structs and traits.
Author
Owner

@bluejekyll commented on GitHub (Mar 27, 2020):

We could definitely use more examples in the project. For client only things, this is probably the best bet:

https://github.com/bluejekyll/trust-dns/blob/master/tests/integration-tests/tests/client_tests.rs#L71-L79

That has a mocked connection, the implementation of that is here:

https://github.com/bluejekyll/trust-dns/blob/master/tests/integration-tests/tests/client_tests.rs#L40-L67

I think that would be the simplest blueprint for implementing something custom.

<!-- gh-comment-id:604850702 --> @bluejekyll commented on GitHub (Mar 27, 2020): We could definitely use more examples in the project. For client only things, this is probably the best bet: https://github.com/bluejekyll/trust-dns/blob/master/tests/integration-tests/tests/client_tests.rs#L71-L79 That has a mocked connection, the implementation of that is here: https://github.com/bluejekyll/trust-dns/blob/master/tests/integration-tests/tests/client_tests.rs#L40-L67 I think that would be the simplest blueprint for implementing something custom.
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#592
No description provided.