mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-24 18:55:55 +03:00
[GH-ISSUE #798] Multiple records in single update? #295
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#295
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 @dsvensson on GitHub (Jun 17, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/798
Seems like it's not possible to combine multiple updates in the same DDNS command. As the function accepts a RecordSet, it ought to be possible, but I can't get it to work.
Something equivalent of the following
nsupdatescript:nsupdatewill sendfoo.as a SOA record in the zone section (looking at wireshark), followed by the three updates in the same packet.@bluejekyll commented on GitHub (Jun 17, 2019):
If I remember correctly update is restricted to operating over a single label. You can send a record-set, which is a single label with many RDATAs, but you can’t send many record-sets.
It sounds like nsupdate is splitting this into 3 different requests for you for each label. The trust-dns client is pretty dumb, in that you’ll need to perform this split across the different labels manually.
@dsvensson commented on GitHub (Jun 17, 2019):
No, nsupdate does not split it. As observed in wireshark, it's in the same DNS packet, which is a great way of reducing overhead when performing a huge number of updates.
@bluejekyll commented on GitHub (Jun 17, 2019):
Ah, I misread your comment.
I’d need to go back and read the 2136 RFC. If we want to support this in trust-dns it would need to be added. The interface would be a little awkward for some of the conditional replacement functions...
@dsvensson commented on GitHub (Jun 17, 2019):
Yeah, perhaps better to just craft the message and send it separately, which should be possible right? Haven't come to send() yet.
@bluejekyll commented on GitHub (Jun 17, 2019):
Ok, yeah. Trust-dns is more restrictive than the rfc requires: https://tools.ietf.org/html/rfc2136
If we want/need this, I think we’ll need a more complex api for it. It would need to expose the prerequisites section, and the update sections, separately. We’d probably want to build functions for generating the proper record-sets for each of those sections as well.
But yes, I don’t think the client supports this directly right now. You could create the message manually for now and not use the higher level api the client provides.