Expand description
HTTP Client Module with DNS Override
This module provides a secured HTTP client that uses the local DNS server
for all DNS resolution. This ensures that all *.editor.land queries go
through the local Hickory DNS server, which resolves them to 127.x.x.x
addresses as a defense-in-depth measure.
Structs§
- Land
DnsResolver - Secured DNS resolver for use with
reqwest’s DNS override. - Tokio
Resolver - Stub DNS resolver type.
Functions§
- Land
Resolver - Creates a
TokioResolverstub that queries the local DNS server. - secured_
client - Creates a secured reqwest Client with DNS override.
- secured_
client_ builder - Creates a secured reqwest ClientBuilder with DNS override configured.
- secured_
client_ with_ timeout - Creates a secured reqwest Client with timeout and DNS override.