mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #1125] [MERGED] Allow creating TXT Rdata with binary data #1988
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#1988
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?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/1125
Author: @bltavares
Created: 6/1/2020
Status: ✅ Merged
Merged: 6/5/2020
Merged by: @bluejekyll
Base:
master← Head:allow-creating-txt-with-binary-data📝 Commits (2)
8d35e92Allow creating TXT Rdata with binary dataabfd448Merge branch 'master' into allow-creating-txt-with-binary-data📊 Changes
1 file changed (+38 additions, -0 deletions)
View changed files
📝
crates/proto/src/rr/rdata/txt.rs(+38 -0)📄 Description
As discussed on https://github.com/bluejekyll/trust-dns/issues/139, it
is possible to create TXT records which respond to binary data.
Hyperswarm is one of such
systems which sends TXT data with binary records, like the captured
packet.
Captured TXT with binary data
While parsing seems to be possible with the work on #325, it was not
possible to create a response using
trust-dns, as it requires aVec<String>, which only allows validutf-8data.This commit adds a new builder for
TXT, which allows sending a vec ofbytes, so it can create the appropriate response using binary data.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.