Skip to main content

Module client

Module client 

Source
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§

LandDnsResolver
Secured DNS resolver for use with reqwest’s DNS override.
TokioResolver
Stub DNS resolver type.

Functions§

LandResolver
Creates a TokioResolver stub 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.