mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[GH-ISSUE #556] Server: The state of Dynamic DNS with SIG(0) #534
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#534
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 @Darkspirit on GitHub (Sep 3, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/556
https://manpages.debian.org/testing/dnsutils/nsupdate.1.en.html
cargo install --git https://github.com/bluejekyll/trust-dns --features dnssec-openssl,dnssec-ring --force --debug --root . --version 0.15.0-alpha.1 trust-dns-servercargo install --git https://github.com/bluejekyll/trust-dns --force --root . --version 0.3.0-alpha.1 --bin dnskey-to-pem trust-dns-utilhttps://dyn.manpages.debian.org/testing/bind9utils/dnssec-keygen.8.en.html
-C is private key format v1.2 as needed from dnskey-to-pem, otherwise it would be v1.3.
I am not sure if I should use HOST, USER or OTHER here. This tutorial used HOST.
dnssec-keygen -a RSASHA256 -b 2048 -C -n HOST -T KEY dev.terrax.net./dnskey-to-pem -o dev.terrax.net.nsupdate.pem Kdev.terrax.net.+008+27979.privateKdev.terrax.net.+008+27979.key
Kdev.terrax.net.+008+27979.private
dev.terrax.net.nsupdate.pem
config.toml
update.sh
running nsupdate
TRust-DNS log
Problems:
github.com/bluejekyll/trust-dns@9d167c7057/server/src/authority/authority.rs (L523)I found this comment from you on this topic. I would expect that TRust-DNS would internally generate a KEY record based on a configured is_zone_update_auth=true key. (Maybe it does and I did something wrong?) On the other hand I also wasn't able to store above Kdev.terrax.net.+008+27979.key record in the zone file. There seemed to be a parsing problem:
1535939557.345767:ERROR:named:406:could not load zone dev.terrax.net.: error reading zone: "/home/trustdns/dev.terrax.net.zone": proto error@bluejekyll commented on GitHub (Sep 5, 2018):
Thank you for this wonderful exploration! I think there is definitely some better tooling needed here.
this sounds like a bug, we should file a separate issue.
Hm, I think we need better validation tools to make sure this is setup correctly.
I think we may have changed the way some of this works, and I definitely want to revisit this. I'm not 100% happy with the authz story for this at the moment. We also clearly need more utilities that help validate certain things, like testing if a key can be used for different things and is compatible. I'm hoping to get back to some of this soon.
Would you want to perhaps give an ideal set of tools that would make this easier for you?
For now, the best example I have for dns-sec && dynamic updates is this: https://github.com/bluejekyll/trust-dns/blob/master/server/tests/named_test_configs/dnssec_with_update.toml
Which is currently validated with this test: https://github.com/bluejekyll/trust-dns/blob/master/server/tests/z_named_test_rsa_dnssec.rs#L180
@Darkspirit commented on GitHub (Feb 6, 2019):
Background: I - as a total beginner - would like to write a small acme lib / tool that
CAA 0 issue "letsencrypt.org; validationmethods=dns-01"is present,Sig0 works if I change
github.com/bluejekyll/trust-dns@9567c3d5f7/crates/server/src/named.rs (L158-L171)toWould you consider this as a valid fix?
@bluejekyll commented on GitHub (Feb 6, 2019):
yes, this looks like a good fix, I'll leave comments in the PR.