mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[GH-ISSUE #510] Server should support wildcards #508
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#508
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 @rushmorem on GitHub (Jun 12, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/510
@bluejekyll commented on GitHub (Jun 12, 2018):
I completely forgot I hadn't gone back and fixed this.
I think this should look similar to this lookup path: https://github.com/bluejekyll/trust-dns/blob/master/server/src/authority/authority.rs#L1022-L1039
Which may need a separate variant for the Iterator: https://github.com/bluejekyll/trust-dns/blob/master/server/src/authority/authority.rs#L1381
@rushmorem commented on GitHub (Jun 12, 2018):
I think the fix for this is even simpler than that. The problem is we are calling
get(&rr_key)which does exact matches. We simply need to replace that withAuthority::findwhich does something similar to whatCatalog::finddoes. If agetfails to find any results, we need to replace the first label with*and see if we can find any results, taking provisions of RFC 1034 into account.@bluejekyll commented on GitHub (Jun 12, 2018):
I haven't read that part of the RFC in a while. I pointed to that custom iterator, mostly because that Iterator is efficient for a full scan of the records in the zone, which
*.example.commight need. But if you think it would be efficient and easy to do this differently, then I'm definitely open to that.Edit: I just realized I was thinking of this in the wrong context. “*.example.com” is the target of the lookup, not the query. You can disregard my comments. I think your comment is closer to the needed solution.
@bluejekyll commented on GitHub (Apr 13, 2019):
Fixed in
github.com/bluejekyll/trust-dns@a43aff634bCatalog::{contains,find,remove}#1489