mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-26 03:35:52 +03:00
[GH-ISSUE #1925] Configuring trust-dns behind Traefik as a DOH server? #819
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#819
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gontier-Julien on GitHub (May 2, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1925
What is the question?
I wanted to know if it would be possible to have trust-dns as a DOH server behind Traefik? ^^
If so could you help me to have an example config file to have it working behind Traefik ^^?
@djc commented on GitHub (May 4, 2023):
It's probably possible. I don't think it's likely that the trust-dns maintainers will write a specific example for your use case, but if you write up some things you've tried which haven't worked as expected we might be able to point you in the right direction.
@Gontier-Julien commented on GitHub (May 5, 2023):
I don't really know where to start to use trust-dns tho
@bluejekyll commented on GitHub (May 8, 2023):
This should be possible. The current best example for DoH is here: https://github.com/bluejekyll/trust-dns/blob/main/tests/test-data/test_configs/dns_over_https.toml
You'd want to combine that with a more complete configuration like this: https://github.com/bluejekyll/trust-dns/blob/main/tests/test-data/test_configs/example.toml
@Gontier-Julien commented on GitHub (May 8, 2023):
Thank! I'll try that ^^
Also it is possible without using any cert? Since it would be handled by Traefik
@bluejekyll commented on GitHub (May 15, 2023):
DoH is designed to run over HTTPS only, so it's not an option to run without a cert. Can you self-sign and register the public key with Traefik? I'm not familiar with that service.
@Gontier-Julien commented on GitHub (May 15, 2023):
Alright, well i can tell treafik to not encrypt the traffic and let trust-dns to do it with the cert from traefik that no problem!
Thank for the info tho!
@Gontier-Julien commented on GitHub (Jun 24, 2023):
So as i have some time to finally try this, i have a suggestion, it would be great to have this project support acme.json ^^
@Gontier-Julien commented on GitHub (Jun 24, 2023):
Also i've been struggling to get pass this point:
thread 'main' panicked at 'could not register TLS listener: Custom { kind: Other, error: "error creating TLS acceptor: unexpected error: invalid private key" }', bin/src/named.rs:617:14i've been using this to get the necessary cert and key:
https://github.com/ldez/traefik-certs-dumper
@Gontier-Julien commented on GitHub (Jun 24, 2023):
The current config
@Gontier-Julien commented on GitHub (Jun 24, 2023):
I'm also just trying to have a DOH server and not a DOT one.
But in the log it keep trying to have a DOT one:
1687631578:INFO:named:593:loading cert for DNS over TLS: "/ssl-certs/certs/certs/domain.cert.pem"@Gontier-Julien commented on GitHub (Jul 6, 2023):
Any news on the situation?
@djc commented on GitHub (Jul 24, 2023):
DoH also needs TLS -- DoH requires HTTP 2, which in practice requires TLS.
@Gontier-Julien commented on GitHub (Jul 24, 2023):
Could you help me on this situation? I don't really what am i missing here
@djc commented on GitHub (Jul 24, 2023):
Sorry, I don't really have time to provide support for this.
@Gontier-Julien commented on GitHub (Jul 24, 2023):
No problem, i'll close this issue now