sargassum-world / latreutes

Desktop application for connecting to ZeroTier networks
Apache License 2.0
1 stars 1 forks source link

Use DNSSEC for resolving domain names #16

Open ethanjli opened 3 years ago

ethanjli commented 3 years ago

Right now we're using trust-dns-resolver to look up DNS records for domain names, but we probably haven't enabled DNSSEC features yet. trust-dns-resolver states that enabling DNSSEC requires enabling the feature dnssec-openssl or dnssec-rustls (we should probably use the latter) in our Cargo.toml file. We also need to determine whether/how to use DNSSEC for the lookups after enabling this feature - it looks like we need to construct a ResolverOpts instance, then set its validate member to true, and then pass the instance into the resolver; then we just use the resolver's lookup method as usual.