Cargo Features

hickory-resolver = { version = "0.24.1", default-features = false, features = ["dns-over-native-tls", "dns-over-openssl", "dns-over-rustls", "dns-over-tls", "dns-over-https-rustls", "dns-over-https", "dns-over-quic", "dns-over-h3", "webpki-roots", "native-certs", "dnssec-openssl", "dnssec-ring", "dnssec", "serde-config", "system-config", "tokio-runtime", "testing"] }
default = system-config, tokio-runtime

These default features are set whenever hickory-resolver is added without default-features = false somewhere in the dependency tree.

dns-over-native-tls = dns-over-tls, tokio-native-tls

Enables dns-over-native-tls of hickory-proto

dns-over-openssl = dns-over-tls, tokio-openssl

DNS over TLS with OpenSSL currently needs a good way to set default CAs, use rustls or native-tls

Enables dns-over-openssl of hickory-proto

dns-over-rustls dns-over-h3? dns-over-https-rustls? dns-over-quic? = dns-over-tls, rustls, tokio-rustls

Enables dns-over-rustls of hickory-proto

Affects config::TlsClientConfig, config::NameServerConfig.tls_config

dns-over-tls dns-over-native-tls? dns-over-openssl? dns-over-rustls? = tokio-runtime
dns-over-https-rustls = dns-over-https, dns-over-rustls

This requires some TLS library, currently only rustls is supported

Enables dns-over-https-rustls of hickory-proto

dns-over-https dns-over-https-rustls?

Enables dns-over-https of hickory-proto

dns-over-quic = dns-over-rustls

Enables dns-over-quic of hickory-proto, quic of rustls ^0.21.6

dns-over-h3 = dns-over-rustls

Enables dns-over-h3 of hickory-proto


Enables webpki-roots ^0.25.0, webpki-roots of hickory-proto


Enables rustls-native-certs ^0.6.3, native-certs of hickory-proto

dnssec-openssl = dnssec

Enables dnssec-openssl of hickory-proto

dnssec-ring = dnssec

Enables dnssec-ring of hickory-proto

dnssec dnssec-openssl? dnssec-ring?

Affects async_resolver::testing.sec_lookup_test, async_resolver::testing.sec_lookup_fails_test

serde-config = serde

Enables serde-config of hickory-proto

system-config default = ipconfig, resolv-conf

Affects async_resolver::testing.system_lookup_test, async_resolver::testing.hosts_lookup_test

tokio-runtime default dns-over-tls?

Enables tokio-runtime of hickory-proto and rt of tokio


Includes basic task execution capabilities

Affects async_resolver::TokioAsyncResolver, hickory-resolver::ResolverFuture, connection_provider::tokio_runtime


Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

resolv-conf system-config
rustls dns-over-quic? dns-over-rustls?

Enables rustls ^0.21.6

serde serde-config?
tokio tokio-runtime
tokio-native-tls dns-over-native-tls?
tokio-openssl dns-over-openssl?
tokio-rustls dns-over-rustls?

Enables tokio-rustls ^0.24.0

ipconfig win system-config