Skip to content

Releases

0.12.3

Choose a tag to compare

@partim partim released this 25 Sep 12:32
f984e3f

New

Bug fixes

  • Limited the number of compression pointers that are followed when parsing a compressed name to 255 to avoid following really long chains. (#745)
  • Limited the length of CNAME chains followed by Message::canonical_name to 20. This also fixed an integer overflow in this method when ANCOUNT wasu16::MAX. (#752)
  • Changed QuestionSection::answer to skip over all remaining questions without parsing the QNAMEs to avoid being slowed down by malicious names. (#753)
  • Fixed maximum pointer created by the name compressors. (#707 by @SebastiaanYN)
  • Don’t compress the names in RP records. (#702 by @SebastiaanYN)
  • Fixed a todo! macro in the Hash impl for IpseckeyGateway. (#706 by @SebastiaanYN)
  • Added length checks when scanning and parsing variable length record data types: Caa, Ipseckey, Nsec3Salt, Openpgpkey, Sshfp, Tlsa Txt Zonemd. (#726)
  • Fixed possible panics in the resolver’s FoundHosts::qname and FoundHosts::canonical_name. (#727)
  • Fixed a wrong start in the resolver when re-ordering SRV records by priority and weight. (#738)
  • Switched additional processing for SRV in the resolver to use an intermediary hash map, avoiding a resource exhaustion issue with crafted malicious responses. (#744)
  • TSIG server: Don’t panic when creating a TSIG error response (#729)
  • Zonefile parser: check for invalid UTF-8. (#730)
  • Fixed integer overflow in Scan impl for unsigned integers. (#725)
  • Fixed a panic in the zonefile parser when an empty TXT record is encountered. (#736)

Unstable features

  • unstable-client-transport:
    • Fix a panic when the TSIG client can’t create a request message due to lack of space. ([#742])
  • unstable-server-transport:
    • Fixed a panic in the NOTIFY middleware when it can’t copy the request. (#733)
    • Fixed a panic in QnameRouter if a request that doesn’t have at least one valid name is dispatched to it. (#734)
    • Fixed a reachable unreachable! in the XFR server middleware. (#739)
    • Fixed a panic in the TSIG middleware when starting to create a signed truncated response fails. (#741)
    • Fixed a panic when the QNAME of an IXFR is not the zone apex in the XFR middleware. (#746)
    • Fixed a panic when constructing a response from a potentially malicious source message. (#751)
  • unstable-sign:
    • Fixed a panic when an NSEC owner name is too long. (#735)
  • unstable-validator:
    • Fixed a panic when encountering an invalid NSEC3 label. (#728)
    • Fixed a potential integer underflow when subtracting TTLs. (#740)
    • Fixed a panic when encountering malformed OPT data. (#747)
    • Fixed a linear scan during name insertion. (#748)
    • Fixed a resource exhaustion issue when trying to find a matching DS/DNSKEY pair by limiting the number of records searched. (#749)
    • Fixed a resource exhaustion issue when finding the closest encloser in NSEC3 by limiting the number of NSEC3 hash calculations. (#750)
  • unstable-xfr:
    • Return an error rather than panicking when a response is not AXFR or IXFR. (#724)
  • unstable-zonetree:
    • Fixed a panic in zonetree::Answer::to_message when the request does not have exactly one question. (#731)
    • Avoid a panic when requesting origin or class from an empty parsed::Zonefile. This change removes the Default impl, which means an origin and class must be given when creating a value. (#732)
    • Prevent unbounded allocation when updating a zone. Changes existing behaviour by returning errors when deleting non-existing record and adding of existing records. (#737)
    • Better deal with apex SOA in unknown record format: return an error if bumping the serial is requested but the SOA is unknown and do not return a diff if no bumping is required so you can detect something odd has happened. (#743)
    • Fixed various issues when updating “special” record types such as CNAME or for zone cuts. (#754)

Acknowledgements

  • We would like to thank Qifan Zhang, Palo Alto Networks, Antoni (Tony) Jagodka (@DrVelvetFog), and @SebastiaanYN for reporting issues fixed in this release.

0.12.2

Choose a tag to compare

@partim partim released this 16 Jul 12:17
4bb47da

New

Improvements

  • Moved more imports to core and alloc to improve no_std support. (#671)

Unstable features:

  • unstable-new:
    • Added Serial::new and Serial::get. (#676)
    • Added conversions for Name. (#678)
    • Added mnemonic Display for RType and RClass. (#678)
    • Renamed a number of record data types and record data helper types to the convention used by old base. (#679
    • Added methods to new base for RRSIG, NSEC, and NSEC3 to make new base more compatible with current domain. (#679)
    • Fixed parsing of NSEC TypeBitmap. (#681)
    • Overhauled name labels. (#687)
    • Added the SRV record data type. (#688, based on #649 by @soywod)

0.12.1

Choose a tag to compare

@partim partim released this 29 May 12:18
3fcaa68

Improvements

  • Implemented core::error::Error instead of std::error::Error for error types, reducing the need for the std feature flag. (#641 by @soywod)
  • Added missing impl core::Error for ParseError. (#650 by @soywod)

Bug fixes

  • Added a length check when parsing open-ended record types like Dnskey<_> which are supposed to never be too large. (#664)
  • Detect when an attempt is made to create a dnssec::sign::records::Rrset with records that have different TTLs. Unfortuantely error handling is poor so the code currently panics. At least this prevents bad signatures but the error handling needs to be fixed later. (#660)

Unstable features

  • unstable-crypto:
    • Added key generation and signing for RSASHA512. (#659)

0.12.0

Choose a tag to compare

@partim partim released this 23 Apr 13:57
eb383a7

Breaking changes

  • Added new LimitExceeded variant to MessageBuilder's PushError. (#349)
  • Changed the Resolver and SearchNames traits of the stub resolver to use lifetimes for associated types. This makes it easier to keep the stub resolver behind an arc or other smart pointer. (#596)

New

  • Added rdata::dnssec::Timestamp::to_system_time to help sorting timestamps. (#548)
  • Added support for the TLSA, OPENPGPKEY, SSHFP, and IPSECKEY record types and added presentation format support for the SVCB/HTTPS record types. (#569)
  • Added support for the CAA record type. (#434 by @weilence)
  • Added FreezeBuilder to the message compressors. (#601 by @rossmacarthur)
  • Added support for the RP record type. (#620)
  • Added a position counter to the zonefile parser, available via Zonefile::current_offset. (#642)

Improvements

  • Excluded moka dependency from the resolv feature, reducing the number of dependencies and compile time significantly. (#575 by @WhyNotHugo)
  • Made various methods in RelativeName into const fns. (#576 by @WhyNotHugo)

Bug fixes

  • When parsing a Bind-style public key file, allow an optional TTL field. (#593)
  • XfrMiddlewareService should always support at least one concurrent XFR. (#599)
  • Fixed generating an ED448 keypair. (#608)

Unstable features

  • unstable-crypto-sign
    • Added support for RSA/SHA-512 to openssl signer. (#550)
    • generate now takes &GenerateParams. This breaks existing uses of generate (#608)
  • unstable-server-transport
    • Return an error response when a Service returns a ServiceError. (#390)
    • Implemented std::error::Error for ServiceError. (#570 by @rossmacarthur)
    • Be more lenient when timing out connections while they are in a transaction. (#399)
    • Removed defaults for type arguments to prevent intermediate types that impl the trait from not allowing the defaults to be overridden. (#484)
    • Added commonly required bounds to the Service trait rather than leaving them to the impl. (#484)
    • Removed unnecessary ?Sized bound on impl Service for U where U: Deref. (#484)
  • unstable-sign
    • keyset improvements (#551)
      • Store the algorithm and key tag of a key to be able to reject duplicate key tags and accidental algorithm rolls.
      • Store whether a key is considered available for a key roll. Rolls with new keys that are not available are rejected.
      • Added two alternative key rolls for KSK and ZSK key rolls.
      • Added an algorithm roll.
      • Added more operations on UnixTime.
      • Added more actions
      • Allow loading public keys only. (#594)
      • Added support for decoupled keys. (#594)
    • RecordsIter::new has been replaced with RecordsIter::new_from_owned. There is a new RecordsIter::new_from_refs that takes a &[&Record]]. This breaks existing uses of `RecordsIter? and related types. (#614)
  • unstable-xfr
    • Various fixes and improvements. (#507)

Other changes

0.11.1

Choose a tag to compare

@partim partim released this 22 Oct 14:46
12e06c8

Bug fixes

  • Fix handling of tabs when formatting RDATA using DisplayKind::Tabbed. (#516)
  • Fix for in-place zone parser yielding incorrect TTLs. (#538)
  • Generalize ZoneUpdater to support any Record type, not just ParsedRecord. (#535)
  • Trim leading modulus and public exponent zeroes per RFC 3110 section 2. (#541)
  • Fix panic in zonetree from in-place zonefile after encountering a malformed record. (#573)

Unstable features

  • unstable-server-transport:
    • Don't discard the NOTIFY SOA serial, if one is received. Existing users of the Notifiable trait will need to update their code as this change adds an argument to Notifiable::notify_zone_changed(). #562)
  • unstable-client-transport:
    • Fix an issue in Stream::Transport when a reply arrives early. (#568 by @TheJokr)

Other changes

  • Fix docs on XfrResponseInterpreter. (#510)

Release 0.11.0

Choose a tag to compare

@bal-e bal-e released this 21 May 17:36
8415235

Breaking changes

  • FIX: Use base 16 per RFC 4034 for the DS digest, not base 64. (#423)
  • FIX: NSEC3 salt strings should only be accepted if within the salt size limit. (#431)
  • Stricter RFC 1035 compliance by default in the Zonefile parser. ([#477])
  • Rename {DigestAlg, Nsec3HashAlg, SecAlg, ZonemdAlg} to {DigestAlgorithm, Nsec3HashAlgorithm, SecurityAlgorithm, ZonemdAlgorithm}

New

  • Added HashCompressor, an unlimited name compressor that uses a hash map rather than a tree. (#396)
  • Changed fmt::Display for HINFO records to a show a quoted string. (#421)
  • Added support for NAPTR record type. (#427 by @weilence)
  • Added initial fuzz testing support for some types via a new arbitrary feature (not enabled by default). (#441)
  • Added StubResolver::add_connection() to allow adding a connection to the running resolver. In combination with ResolvConf::new() this can also be used to control the connections made when testing code that uses the stub resolver. (#440)
  • Added ZonefileFmt trait for printing records as zonefiles. (#379, #446, #463)

Bug fixes

  • NSEC records should include themselves in the generated bitmap. (#417)
  • Trailing double quote wrongly preserved when parsing record data. (#470, #472)
  • Don't error with unexpected end of entry for RFC 3597 RDATA of length zero. (#475)

Unstable features

  • New unstable feature unstable-crypto that enable cryptography support for features that do not rely on secret keys. This feature needs either or both of the features ring and openssl (#416)

  • New unstable feature unstable-crypto-sign that enable cryptography support including features that rely on secret keys. This feature needs either or both of the features ring and openssl (#416)

  • New unstable feature unstable-client-cache that enable the client transport cache. The reason is that the client cache uses the moka crate.

  • New unstable feature unstable-new that introduces a new API for all of domain (currently only with base, rdata, and edns modules). Also see the associated blog post.

  • unstable-server-transport

    • The trait SingleService which is a simplified service trait for requests that should generate a single response (#353).
    • The trait ComposeReply and an implementation of the trait (ReplyMessage) to assist in capturing EDNS(0) options that should be included in a response message (#353).
    • Adapters to implement Service for SingleService and to implement SingleService for SendRequest (#353).
    • Conversion of a Request to a RequestMessage (#353).
    • A sample query router, called QnameRouter, that routes requests based on the QNAME field in the request (#353).
  • unstable-client-transport

    • introduce timeout option in multi_stream (#424).
    • improve probing in redundant (#424).
    • restructure configuration for multi_stream and redundant (#424).
    • introduce a load balancer client transport. This transport tries to distribute requests equally over upstream transports (#425).
    • the client cache now has it's own feature unstable-client-cache.
  • unstable-sign

    • add key lifecycle management (#459).
    • add support for adding NSEC3 records when signing.
    • add support for ZONEMD.
  • unstable-validator

    • The validate crate is moved to dnssec::validator::base.
    • The validator crate is moved to dnssec::validator.

Other changes

0.10.4

Choose a tag to compare

@partim partim released this 31 Mar 14:42
b851eeb

Other changes

0.10.3

Choose a tag to compare

@partim partim released this 14 Oct 14:46
874d44b

New

  • Added Deserialize impl for the base::net::nostd::Ipv6Addr and fixed the impl for Ipv4Addr. (#413)

Bug fixes

  • Fixed an incorrect feature gate that blocks compilation if only "net" is enabled. (#412)
  • Added (all? most?) missing feature dependencies for all features.
  • Fixed Deserialize impls for ParsedName and ExtendedError to compile and work without std. (#413)

0.10.2

Choose a tag to compare

@partim partim released this 10 Oct 13:19
3c63882

New

  • Added an optional push size limit to MessageBuilder. (#348)
  • Added FromStr impls for Rcode and OptRcode. (#357)
  • Added OptRcode::is_ext to check if the code is an extended code. (#358)
  • Added Rtype::is_glue to check if the Rtype may be used as glue. (#363)
  • Added MessageBuilder::start_error, like start_answer but infallible. (#369)
  • Added AnswerBuilder::push_ref, like push but takes the record by reference. (#383)
  • Added Rtype::NXNAME and ExtendedErrorCode::INVALID_QUERY_TYPE. (#392)
  • Added a Serialize impl to AllRecordData and as a consequence to the OPT record and all OPT options, as well as ParsedName. (#343)
  • Added Display impl to tsig::Key. (#397)

Bug fixes

  • Fixed a mistake in the tsig module while calculating the start of the TSIG record when there were other records in the additional section, causing the TSIG code to fail if OPT records were in use. (#333)
  • Fixed the mnemonic for the NOTAUTH rcode – it was NOAUTH. (#360)
  • Fixed the way the Txt<_> record data implements comparison-related traits. They now directly compare the underlying octets, i.e., the wire format bytes. (#374 by @dklbreitling)
  • Fixed the tsig module to reject messages with multiple TSIG records. (#334)
  • Fixed Display rendering of empty NSEC3 salt to be '-' per RFC 5155 section 3.3. (#407)

Unstable features

  • New unstable feature unstable-validator that adds a DNSSEC validator. (#328)
  • New unstable feature unstable-xfr that adds XfrResponseInterpreter for iterating over XFR responses as a sequence of high level ZoneUpdates, and XfrMiddlewareSvc and XfrDataProvider for responding to received XFR requests. (#375, #384)
  • unstable-client-transport:
    • Fixed an issue with slow responses in the multi_stream transport by not waiting in the first iteration if an underlying stream reports its connection being closed. (#338)
    • Added an option called idle_timeout to stream that allows a TCP or TLS connection to stay open even if no TcpKeepalive option is received from the server. (#341)
    • Fixed an off-by-one error in Dgram client retry count checking. (#354)
    • Added support for requests that may result in multiple responses. This adds ComposeRequestMulti and other *Multi types. The main change is to the stream transport, which is the only transport that implements SendRequestMulti. (#377)
    • Added a TSIG request signing and response validating passthrough transport in net::client:tsig. (#373)
  • unstable-server-transport
    • Breaking changes to the Service and middleware traits. (#369)
    • Added TsigMiddlewareSvc request validating and response signing middleware in net::server::middleware::tsig. (#380)
    • Added NotifyMiddlewareSvc in net::server::middleware::notify to parse and acknowledge SOA NOTIFY requests, for use by secondary nameservers to detect outdated zones compared to the primary. (#382)
    • CookiesMiddlewareSvc now allows requests with invalid cookies to proceed if they are authenticated or not required to authenticate. (#336)
    • Added an enabled flag to CookiesMiddlewareSvc. (#369)
    • Added trait ResourceRecordBatcher and impl CallbackBatcher in net::server::batcher for pushing as many records into a response as will fit according to defined limits. (#383)
    • Enforce dgram max response size limit. (#398)
    • Extended MandatoryMiddlewareSvc with an RFC 9619 check for opcode QUERY with QDCOUNT > 1. (#365)
    • Added blanket SendRequest and SendRequestMulti impls for boxes. (#397)
    • EdnsMiddlewareSvc fixes: (#355)
      • Reply with FORMERR if an OPT RR cannot be parsed.
      • Don't reply with FORMERR if an edns-tcp-keepalive option is received via UDP, instead ignore it per RFC 7828 3.2.1.
      • Only reserve space for an edns-tcp-keepalive option for TCP requests, not UDP requests.
      • Always reserve space for an OPT RR in the response for any request that has an OPT RR, not just TCP requests.
    • Servers now drop received DNS response messages. (#381)
    • Improved handling of errors while sending TCP responses. (#309)
    • Correctly reserve space for OPT in EdnsMiddlewareSvc. (#403)
  • unstable-zonetree:
    • Added ZoneUpdate. (#375)
    • Added ZoneUpdater, ZoneDiff, InMemoryZoneDiffBuilder, InMemoryZoneDiff and improved ZoneUpdate. (#376, #384)
    • Improved zonefile parsing error messages. (#362).
    • TryFrom<inplace::Zonefile> for Zonefile now returns the set of errors instead of logging and ignoring them. (#362)
    • Allow both glue (A/AAAA) and zone cuts at the same owner when zone parsing. (#363)
    • Altered the logic in Versioned::remove_all() (formerly Versioned::clean()) as it made destructive changes to the zone that would have impacted readers of the current zone version while the new zone version was being created. (#376)
    • Removed / renamed references to clean in zonetree::in_memory to remove. (#376)
    • Fixed zone walking to include non-leaf CNAMEs. (#352)
    • Fixed zone walking to pass the correct owner name to the callback. (#384)
    • Added an as_any method and Clone and Debug impls to various zonetree types. (#397)
    • Added AsRef<dyn ZoneStore> to Zone. (#397)
    • Added handling of the AA flag and additional records to answer generation. (#400)
    • Zone walking now includes glue records. A new flag at_zone_cut was added to the callback interface. (#401)

0.10.1

Choose a tag to compare

@partim partim released this 03 Jun 15:02
b65cc98

New

  • Allow AllRecordData’s parsing impls to accept an unsized [u8] as the source octets. (#310 by @xofyarg)
  • Made sign::records::FamilyName public. (#312 by @achow101)
  • Added an impl of FromStr for Question. (#317)

Bug fixes

  • Accept an empty record type bitmap when scanning NSEC/NSEC3 data. (#310 by @xofyarg)
  • Fix serialization of ProtoRrsig to conform with RFC 4034. ([#313 by @achow101)
  • Add ?Sized bounds to Message::is_answer and ParsedRecord::to_record. (#318 by @xofyarg, #325 by @hunts)
  • Bring back MessageBuilder::as_target. (#318 by @xofyarg)
  • Bring back impl FreezeBuilder for StaticCompressor. (#318 by @xofyarg)
  • sign::records::RecordsIter::skip_before now stops at the first name in zone even if the apex itself doesn’t appear. (#314 by @achow101)
  • Fix a counting error in SliceLabelsIter::next that broke compression via StaticCompressor. (#321 by @hunts)

Unstable features

  • New unstable feature unstable-stelline for the Stelline testing framework as a “normal” module of domain. (#315)
  • Renamed the domain name types in zonetree from Dname to Name. (#308)

Other changes

  • The minimum Rust version is now 1.78. (#320)