diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f1ea5692..5d5dfe768 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 10.1.0 (3 July 2024) + +- c-ares 1.32.0 + ## 10.0.0 (7 June 2024) - string values are `&str`, not `CStr` diff --git a/Cargo.toml b/Cargo.toml index 9ace100ee..5bae89f5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "c-ares" license = "MIT" -version = "10.0.0" +version = "10.1.0" authors = ["David Hotham"] description = """ A Rust wrapper for the c-ares library, for asynchronous DNS requests. @@ -25,7 +25,7 @@ features = ["vendored"] [dependencies] bitflags = "2.0" -c-ares-sys = { version = "9.2.0", path = "c-ares-sys", default-features = false } +c-ares-sys = { version = "9.5.0", path = "c-ares-sys", default-features = false } c-types = "3.0.0" itertools = "0.13" diff --git a/src/flags.rs b/src/flags.rs index a666c7339..c2a6a7437 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -34,7 +34,17 @@ bitflags!( /// for writing clients which might be used to test or debug name servers. const NOCHECKRESP = c_ares_sys::ARES_FLAG_NOCHECKRESP; - /// Use Extension Mechanisms for DNS. + /// Include an EDNS pseudo-resource record (RFC 2671) in generated requests. As of c-ares + /// v1.22, this is on by default if flags are otherwise not set. const EDNS = c_ares_sys::ARES_FLAG_EDNS; + + /// Do not attempt to add a default local named server if there are no other servers + /// available. Instead, fail initialization with ARES_ENOSERVER. + const NO_DFLT_SVR = c_ares_sys::ARES_FLAG_NO_DFLT_SVR; + + /// Enable support for DNS 0x20 as per + /// https://datatracker.ietf.org/doc/html/draft-vixie-dnsext-dns0x20-00 which adds + /// additional entropy to the request by randomizing the case of the query name. + const DNS_0X20 = c_ares_sys::ARES_FLAG_DNS0x20; } );