Introducing a new way to review your PRs.

Read the announcement

superradcompany / microsandbox

🧱 easy, fast, programmable and local-first microVM runtime and library

View on GitHub

27 documents · Updated Nov 23, 2026

docs / network-policy-and-dns

Network policy and DNS routing

Network policy and DNS routing form the egress control layer for each sandbox. Ordered policy rules decide which destinations and transports the guest may reach, while the host-side DNS path captures resolvers, applies the same controls to names and answers, and sends permitted queries to a configured or discovered upstream. See Sandbox networking for the wider packet and proxy flow.

Destination policy

The network policy is an ordered set of allow or deny rules with separate defaults for outbound (egress) and inbound (ingress) traffic. The first matching rule wins, so rule order is part of the access contract. A rule can narrow by direction, protocol, port, and destination.

Destination categories

Destination matching gives policy authors both direct address ranges and named groups. The groups are mutually exclusive for policy purposes, with the cloud metadata address treated as its own group instead of ordinary link-local traffic.

Destination formMeaning
AnyEvery destination.
IP or CIDRA single address or address range.
DomainOne exact domain, matched through DNS evidence.
DomainSuffixThe apex domain and its label-aligned subdomains.
PublicAddresses outside the named local groups.
PrivatePrivate, carrier-grade NAT, and IPv6 unique-local ranges.
HostThe sandbox gateway and the host alias behind it.
LoopbackThe guest loopback range.
LinkLocalLink-local ranges except the metadata address.
MetadataThe cloud metadata endpoint.
MulticastIPv4 and IPv6 multicast ranges.

The Host group uses the per-sandbox gateway addresses. This distinction matters because Loopback means the guest's own loopback, not the host machine's localhost. Unspecified addresses do not become reachable through the Public fallback.

References: crates/…/types.rs• L138-200 crates/…/destination.rs• L16-59 crates/…/shared.rs• L128-147

Rule evaluation

For an outbound flow, the evaluator checks egress or Any-direction rules in list order. Empty protocol and port sets mean any protocol or port. For inbound traffic, the destination field describes the peer source and the port filter describes the guest's listening port. If no rule matches, the direction's default action applies.

High-level public, private, and host profiles expand into deny-by-default egress rules. A non-empty profile set also adds a narrow rule for plain DNS through the sandbox gateway. An empty profile set denies egress and adds no DNS access.

The policy exposes a separate explicit-address evaluation for DNS answer checks. This path considers only matching address or group rules and does not let a broad default allow silently count as explicit permission. It keeps DNS rebinding protection separate from the general fallback used for ordinary flows.

Configured NAT64 /96 prefixes add an IPv4 policy view for matching. A translated IPv6 destination is still used as the transport address, but its embedded IPv4 address also participates in group and CIDR checks so private, loopback, link-local, and metadata targets do not appear public by accident.

The policy builder supports grouped and bulk rule input without changing the ordered rule model. Domain and suffix batches produce one rule per name in input order and inherit the current direction, protocol, and port state. Address, CIDR, and domain strings remain pending until build(), which validates them and reports the first invalid entry. If callers omit defaults, egress denies by default while ingress allows by default. The builder also warns when a later address-only rule is fully covered by an earlier rule; the warning does not change evaluation.

References: crates/…/types.rs• L3-20 crates/…/types.rs• L36-60 crates/…/types.rs• L289-331 crates/…/types.rs• L367-393 crates/…/builder.rs• L301-345 crates/…/builder.rs• L591-645 crates/…/builder.rs• L821-909 crates/…/destination.rs• L133-148 crates/…/types.rs• L72-86

Domain matching

Domain rules connect a name to an IP without treating a name as an address by itself. The DNS path records the addresses returned for a name in a time-limited reverse index, keeps earlier rotating answers until their own TTLs expire, and later egress checks use those bindings to decide whether the destination IP belongs to the requested domain.

Domain names

DomainName is the validated form used by exact and suffix rules. It removes leading and trailing dots and uses lower-case ASCII, so policy input and DNS cache entries use the same form. It accepts DNS names with service labels such as _tcp but rejects URL parts, ports, empty names, and invalid labels. A suffix must contain more than one label to avoid a rule that covers every name under a top-level label.

References: crates/…/name.rs• L37-75 crates/…/name.rs• L81-129

Exact and suffix rules

An exact domain rule matches only the same cached hostname. A suffix rule matches the apex and subdomains at a label boundary, so example.com matches api.example.com but not evilexample.com. The cache binding also keeps shared-IP services safe: an allowed name does not grant access to an unrelated name that happens to use the same IP.

References: crates/…/types.rs• L142-162 crates/…/types.rs• L894-959 crates/…/types.rs• L997-1013

Hostname sources

The policy can evaluate a connection with the cached hostname, with the TLS Server Name Indication (SNI), or before the hostname is known. Allow rules require the SNI to agree with a cached DNS binding. Deny rules can use matching SNI without that binding so a direct connection to an IP cannot evade a domain block. When a TCP connection starts before SNI is available, the evaluator may defer the decision until the first flight; an allowed domain still needs DNS evidence.

The TCP proxy only performs an SNI read when domain rules exist. It then checks the guest's original destination before opening the host-side connection. TLS interception applies the same domain check to the extracted SNI.

Strict hostname enforcement is enabled by default. In this mode, a hostname-based allow needs an inspectable application authority, so a domain allow can require TLS interception when the connection does not expose a usable name.

References: crates/…/types.rs• L227-264 crates/…/types.rs• L395-498 crates/…/types.rs• L935-1019 crates/…/proxy.rs• L184-229 crates/…/proxy.rs• L148-191 crates/…/types.rs• L72-86

DNS interception

The DNS engine groups guest interception, forwarding, host nameserver access, and transport proxies behind one host-side path. UDP/53 packets are captured by the virtual network stack, and TCP/53 connections use a matching stream proxy. If TLS interception is enabled, TCP/853 is terminated at the gateway and its inner DNS messages use the same forwarder. Responses return on the transport used by the guest.

The port classification keeps inspectable DNS separate from traffic that must be refused or treated as ordinary egress:

Guest trafficGateway behavior
UDP or TCP port 53Intercept and forward through the DNS policy path.
TCP port 853Intercept as DNS over TLS when TLS interception is configured.
UDP port 853, 5353, 5355, or 137Refuse because the gateway cannot apply the same DNS controls.
HTTPS on TCP port 443Treat as normal HTTPS traffic.

The interceptor preserves the guest's original DNS destination. This allows the forwarder to tell a query sent to the gateway from a query sent to an explicit resolver such as @1.1.1.1, and it lets the response use the source address the guest expects.

References: crates/…/mod.rs• L1-14 crates/…/interceptor.rs• L52-79 crates/…/interceptor.rs• L85-155 crates/…/ports.rs• L31-77

DNS-over-TLS routing

DNS-over-TLS (DoT) keeps encrypted guest DNS inside the same policy path. The gateway terminates the guest TLS session so it can inspect the DNS name and answer addresses; it then uses plain DNS for gateway-targeted queries or a new DoT connection for a guest-selected resolver. The guest CA must trust the interception CA for this path to work.

For a direct DoT query, the guest's SNI supplies the upstream TLS server name. If the guest targets an IP literal without SNI, the resolver IP is used as the server name instead. The upstream connection validates that name against the host's trusted roots, and it uses the configured query timeout for the connection and query.

References: crates/…/dot.rs• L1-27 crates/…/dot.rs• L174-225 crates/…/dot.rs• L306-323 crates/…/client.rs• L76-187 crates/…/forwarder.rs• L782-828

DNS policy and forwarding

The forwarder checks the query name before it selects an upstream. Domain and suffix rules match the requested name directly. Any and Host rules match the guest-facing DNS transport and port. Other IP-based destinations cannot match yet because the query has no answer IP. A denied query receives a local NXDOMAIN and does not reach a resolver.

When the query reaches a gateway address, the forwarder uses the operator's upstream list. On Windows, a gateway query with no explicitly configured nameserver uses the Windows DNS Client instead of a flattened adapter-server list. This lets Windows select resolvers for VPN, split-DNS, encrypted DNS, and resolver health. When the guest chooses another resolver, its address must pass both the sandbox policy and any host-owned policy floor. A permitted direct query keeps the guest's transport: UDP uses UDP/53, TCP uses TCP/53, and DNS over TLS uses TCP/853.

The upstream client layer turns that routing choice into a transport-specific resolver connection. UDP and TCP clients use the configured query timeout. DoT clients validate the upstream certificate against the selected server name and the host's trusted roots before they send a query. This keeps direct encrypted DNS inside the same timeout and trust boundary as other upstream paths.

For direct configured upstreams, the list is tried in order. A timeout or transport failure moves to the next entry, but a resolver response such as SERVFAIL or REFUSED is returned as an answer from a working resolver. The Windows system path instead returns the response selected by the Windows DNS Client. If no upstream can answer, the guest receives SERVFAIL instead of waiting without a result.

The following flow shows how a guest query becomes either a local decision or an upstream response.

flowchart TD
    Q[Guest DNS query] --> I[Gateway interception]
    I --> P{Name and transport allowed?}
    P -- No --> NX[Local NXDOMAIN]
    P -- Yes --> A{Target is gateway?}
    A -- Yes --> C[Configured upstreams or Windows DNS Client]
    A -- No --> R{Resolver passes policies?}
    R -- No --> NX
    R -- Yes --> D[Guest-chosen resolver]
    C --> F[Try direct upstreams in order on failure]
    C --> W[Use Windows system selection]
    D --> X[Forward with guest transport]
    F --> X
    W --> X
    X --> B{Rebind protection allows answers?}
    B -- No --> NX
    B -- Yes --> K[Cache A/AAAA bindings]
    K --> L{Binding capacity available?}
    L -- No --> SF[Local SERVFAIL]
    L -- Yes --> RESP[Return response to guest]

Configured upstreams use the first resolver that produces a usable response. The forwarder moves to the next resolver only when the current one times out, fails at transport level, or closes without a response. A received DNS error such as SERVFAIL or REFUSED remains the answer from that resolver. If a new answer would exceed the per-hostname or sandbox binding limit, the forwarder returns SERVFAIL and keeps existing live bindings.

References: crates/…/forwarder.rs• L189-311 crates/…/forwarder.rs• L336-352 crates/…/forwarder.rs• L355-411 crates/…/forwarder.rs• L449-535 crates/…/forwarder.rs• L689-735 crates/…/client.rs• L42-137 crates/…/windows_resolver.rs• L61-112 crates/…/compatibility.rs• L81-92

DNS answers and rebinding protection

DNS rebinding protection is separate from permission to ask a question. When enabled, the forwarder rejects private or reserved A and AAAA answers unless an explicit address-based egress rule allows the address. The host policy floor must also allow it when one is present. A broad default allow does not count as explicit permission.

Accepted A and AAAA answers are stored by hostname and address family with the answer lifetime. Each address remains bound until the TTL of the answer that returned it expires, so rotating resolver answers can remain usable for concurrent connections. If a new answer exceeds the per-hostname or sandbox binding limit, the answer is rejected with SERVFAIL while existing bindings remain available. A missing or expired entry prevents an allowed domain rule from granting access to an IP. The host alias host.microsandbox.internal is answered locally with the active gateway address and is not sent upstream.

The forwarder also filters the full response before it reaches the guest. Restricted reverse zones do not reach the upstream, and a restricted target remains blocked when it appears through an alias or a translated NAT64 address. Extra answer, authority, and additional records that would expose restricted data are removed, while the current policy is checked again after an upstream wait before bindings are accepted.

References: crates/…/forwarder.rs• L247-288 crates/…/forwarder.rs• L347-393 crates/…/forwarder.rs• L721-840 crates/…/security_tests.rs• L136-374 crates/…/shared.rs• L69-105 crates/…/shared.rs• L209-273

Nameserver discovery

Nameserver discovery supplies the upstream list used for queries sent to the gateway. Explicit nameservers take priority. If none are configured, Unix hosts provide resolver settings from the platform's authoritative source, while Windows host-default queries use the Windows DNS Client directly.

SourceDiscovery rule
Explicit nameserverAccept an IP or hostname with an optional port. Resolve hostnames once at startup through the host OS resolver.
macOS host settingsRead the SystemConfiguration dynamic store first. Fall back to /etc/resolv.conf when it is unavailable or empty.
Linux host settingsRead /etc/resolv.conf.
Windows host settingsUse the Windows DNS Client directly for host-default queries instead of discovering a flat adapter nameserver list.

Each explicitly configured entry may fail on its own. Failed entries are skipped if another entry resolves. Startup fails only when no usable explicit nameserver remains. On Unix, startup also fails when no host resolver is available. Windows host-default mode does not need nameserver discovery because the system client owns resolver selection. Explicit nameserver lookup still uses the host resolver rather than the sandbox interceptor, which avoids a bootstrap loop.

The Windows system path uses the modern raw-query API when the host provides it. Older Windows systems use a compatibility path through the established DNS Client API. The compatibility path accepts one Internet-class question, carries UDP or TCP intent to Windows, and rebuilds the result as a guest-visible wire response. It normalizes Windows record text and maps host result codes into DNS response codes. A pending query is cancelled when its request times out or is dropped. Both Windows paths preserve the guest query transport and return a wire-format DNS response for the shared forwarder.

References: crates/…/nameserver.rs• L1-14 crates/…/nameserver.rs• L40-84 crates/…/forwarder.rs• L474-574 crates/…/windows_resolver.rs• L1-7 crates/…/windows_resolver.rs• L61-112 crates/…/compatibility.rs• L59-181 crates/…/compatibility.rs• L205-299

Configuration builders

The network configuration builders turn user intent into a serializable network configuration that the runtime can apply at sandbox start. The network builder composes policy, DNS, TLS, strict hostname enforcement, NAT64 classification, outbound proxy settings, and other egress controls, while the DNS builder controls rebinding protection, upstreams, and query timeouts.

NetworkConfig is the durable configuration boundary for the sandbox. It keeps policy and DNS settings together with the defaults needed for safe startup, including strict hostname checks, enabled rebinding protection, a five-second DNS query timeout, and the well-known NAT64 /96 prefix. A separate resolved form carries launch-only values such as resolved outbound proxy credentials without changing the durable intent. The model and proxy configuration remain available without the optional host networking engine; the engine adds runtime enforcement and relays.

Policy string values are kept until build(). That stage parses IPs, CIDRs, exact domains, and suffixes, then rejects missing directions, invalid ranges, unsupported ingress ICMP rules, and invalid domain forms. Bulk domain helpers preserve input order and apply the closure's current transport filters to each generated rule. The builder also warns when an address-only rule makes a later address-only rule unreachable; it does not change the rule order. NAT64 prefixes are accepted only as /96 networks.

The network builder also rejects an incomplete custom TLS interception CA when interception is enabled. Before an enabled sandbox starts, host-side sources for network secrets are resolved into the launch configuration. This includes source-backed secret values and authenticated proxy credentials, while the durable configuration keeps only the source reference. A missing or empty environment value, an unsupported source, or an invalid resolved proxy stops launch. Disabled networking does not need this resolution.

References: crates/…/mod.rs• L1-15 crates/…/builder.rs• L233-275 crates/…/builder.rs• L396-410 crates/…/builder.rs• L453-479 crates/…/builder.rs• L483-525 crates/…/types.rs• L52-86 crates/…/types.rs• L140-151 crates/…/types.rs• L183-201 crates/…/types.rs• L322-400 crates/…/builder.rs• L301-345 crates/…/builder.rs• L591-645

Outbound proxy routing

An outbound proxy is an optional host-side next hop for sandbox connections. HTTP CONNECT and SOCKS4 relay TCP, while SOCKS5 also relays non-DNS UDP. The selected proxy carries the guest's destination through its own handshake, so the policy decision remains tied to the original guest destination.

Proxy protocolTCP egressNon-DNS UDP egressAuthentication form
HTTP CONNECTSupportedNot supportedOptional source-backed username and password
SOCKS4SupportedNot supportedOptional user ID
SOCKS5SupportedSupported through UDP associationOptional source-backed username and password

Proxy settings use durable protocol and address data. Credentials use host-side sources and move into the resolved launch form only when the sandbox starts. The runtime checks that resolved credentials match the configured protocol and username before it opens a proxy connection. Proxy URI parsing is intended for string-based interfaces and supports only the three declared protocols without embedded credentials or extra URI parts.

The host connection result determines the guest connection result. A failed or rejected proxy handshake does not appear as a successful guest connection, and cancelling a pending host dial closes that pending path so another guest connection can proceed without a stale relay.

References: crates/…/types.rs• L18-91 crates/…/types.rs• L156-195 crates/…/types.rs• L202-216 crates/…/http_connect.rs• L146-190 crates/…/socks.rs• L85-253 crates/…/resolver.rs• L85-147 crates/…/types.rs• L132-150 crates/…/tcp_connect_tests.rs• L25-65 crates/…/tcp_connect_tests.rs• L210-250

The DNS builder replaces the current nameserver list and keeps rebinding protection enabled by default with a five-second query timeout. The network builder embeds the result in NetworkConfig, so policy and DNS settings travel together in the host networking stack. The same configuration can route outbound connections through a proxy. SOCKS5 can relay non-DNS UDP, while SOCKS4 and HTTP CONNECT cannot. The declarative configuration stays serializable across the sandbox boundary, while launch-only values are resolved separately.

References: crates/…/mod.rs• L1-15 crates/…/builder.rs• L233-275 crates/…/types.rs• L183-201 crates/…/resolver.rs• L17-30 crates/…/lib.rs• L1-27

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep destination-group classification, profile expansion, and DNS rebinding checks aligned. A new address category can change both direct egress and DNS answer handling.
  • Keep configured NAT64 /96 prefixes aligned with the address projection used by group and CIDR policy checks. A prefix accepted by configuration but absent from runtime state can turn a translated private destination into apparent public egress.
  • Preserve the gateway IP set in both policy shared state and DNS upstream selection. A mismatch can make Host rules disagree with gateway queries.
  • Keep domain canonicalization identical for policy input, DNS question names, SNI, and the resolved-hostname cache.
  • When adding a guest DNS transport, map its guest port and policy protocol together. The forwarder must also preserve the matching upstream transport.
  • Keep the default-deny profile's DNS rule narrow to the gateway. A broad DNS allow can let guests choose resolvers that were not intended to be reachable.
  • Preserve explicit address-only checks for private DNS answers. Changing them to default-policy checks can disable rebinding protection through an allow-all default.
  • Preserve per-address TTLs and accumulation of rotating DNS answers. Replacing the binding set on each response can deny concurrent connections to earlier valid answers.
  • Keep per-hostname and sandbox binding limits aligned with the forwarder's SERVFAIL behavior. A capacity rejection must not discard existing live bindings.
  • Treat explicit nameserver resolution as a host-startup dependency. Routing it through the sandbox DNS interceptor creates a bootstrap cycle.
  • Keep Windows host-default queries on the Windows DNS Client path. Flattening adapter settings into a static list can break VPN and split-DNS routing.
  • Keep the raw-query and compatibility Windows paths equivalent for transport framing, response codes, and guest-visible DNS responses.
  • Keep the durable NetworkConfig contract separate from launch-only resolved values. Persisting resolved proxy or secret material can expose host credentials or make saved policy host-specific.
  • Keep source-backed network values out of durable configuration. Resolve them only at launch and preserve failure reporting for missing, empty, or unsupported sources.
  • Keep guest-facing DoT interception and direct upstream DoT aligned on SNI selection, port policy, and CA trust. A change in one side can expose an encrypted query path that the other side cannot inspect or verify.
  • Keep upstream DoT certificate verification tied to the selected server name and host trust roots. A client that connects without validating either can route queries to an unintended resolver.
  • Keep upstream UDP, TCP, and DoT clients tied to the configured query timeout. A client that uses a different default can delay failover or guest-visible failure.
  • Keep outbound proxy protocol support aligned with the traffic types that the runtime can relay. SOCKS4 and HTTP CONNECT cannot carry non-DNS UDP.
  • Keep durable proxy protocol, address, and credential sources aligned with the resolved launch proxy. A mismatch can stop launch or silently select the wrong relay capability.
  • Keep proxy handshake failure and cancellation connected to guest-visible connection state. A host-side failure must not leave a guest socket established without a usable upstream.

Important failure modes

TriggerConsequenceGuard
A deny-by-default policy has no DNS ruleAll guest lookups receive local NXDOMAIN.Add the gateway DNS rule or use a non-empty profile set.
A domain allow rule has no matching DNS cache entryThe later IP connection is denied even when its SNI names the allowed domain.Resolve the domain through the intercepted path before connecting.
A direct query targets a resolver denied by either policyThe query receives local NXDOMAIN and is not redirected to another resolver.Permit the chosen resolver with the correct transport and port.
A configured upstream times out or fails at transport levelThe forwarder tries the next configured upstream. If none works, the guest receives SERVFAIL.Order more than one usable upstream and set a suitable query timeout.
A configured upstream returns SERVFAIL or REFUSEDThe response is returned as the answer from that working resolver. The next upstream is not queried.Use upstreams that provide the desired resolver policy.
The Windows DNS Client query fails or returns unusable dataThe gateway cannot produce an upstream answer and the guest receives SERVFAIL.Keep the Windows system path available and use explicit nameservers only when the host client cannot serve the required route.
An upstream DoT certificate is untrusted or its name does not matchThe encrypted upstream connection fails and the query cannot be forwarded.Use a resolver name covered by its certificate and a host trust root.
A DNS answer contains a private or reserved address without explicit address permissionThe answer is replaced with NXDOMAIN, and no binding is cached.Add a deliberate CIDR or group allow rule, subject to the host policy floor.
A DNS answer would exceed the per-hostname or sandbox binding limitThe guest receives SERVFAIL, while existing live hostname bindings remain usable.Keep binding limits sized for rotating answers or remove stale bindings through TTL expiry.
DNS over TLS is used without TLS interception or without a trusted guest CAThe TCP/853 session cannot be inspected or established, so the guest must use another DNS path.Enable TLS interception and trust its guest CA, or use plain DNS.
A domain suffix is configured as a single labelPolicy construction fails because the suffix would cover an unsafe broad name set.Use a scoped suffix such as corp.internal or example.com.
A NAT64 prefix is configured with a length other than /96Network configuration construction fails before the sandbox starts.Use the default well-known prefix or add a valid /96 prefix.
A custom TLS interception CA has only a certificate or only a keyNetwork configuration construction fails before the sandbox starts.Provide both CA paths or use the generated interception CA.
A source-backed network value is missing or unsupported at launchNetwork configuration resolution fails before the enabled sandbox starts.Provide a non-empty supported host source or use a materialized value where appropriate.
Non-DNS UDP is sent through a SOCKS4 or HTTP CONNECT outbound proxyThe proxy cannot relay the traffic.Use SOCKS5 for non-DNS UDP or route that traffic without a proxy.
Resolved proxy credentials do not match the configured proxy protocol or usernameNetwork launch fails before the proxy can be used.Resolve credentials from the matching durable proxy configuration.
An HTTP CONNECT proxy returns a non-2xx response or stalls during its responseThe host tunnel fails and the guest does not get a successful connection.Use a responsive proxy that returns a valid final response within the handshake deadline.
A pending proxy connection is cancelled without closing its host pathA stale host dial can consume resources or interfere with later fallback.Propagate guest cancellation to the host connection and relay.

Key files

FileWhy to read it
crates/…/types.rsDefines policy defaults, rule order, destination forms, domain sources, DNS query evaluation, and explicit address checks for DNS answers.
crates/…/destination.rsShows how IPs map to disjoint destination groups and how gateway precedence works.
crates/…/name.rsDefines the canonical domain value shared by policy and DNS matching.
crates/…/builder.rsShows how fluent policy input becomes validated ordered rules and how bulk domain input preserves order.
crates/…/mod.rsDefines the DNS engine boundary and groups interception, forwarding, nameserver, proxy, and Windows resolver paths.
crates/…/forwarder.rsConnects query policy, resolver choice, answer filtering, cache updates, upstream failover, binding limits, and Windows host-default routing.
crates/…/client.rsBuilds the UDP, TCP, and DoT upstream clients and applies upstream trust and timeout rules.
crates/…/security_tests.rsDemonstrates that restricted DNS data stays blocked across UDP, TCP, DoT, aliases, reverse zones, and NAT64 answers.
crates/…/interceptor.rsShows how guest UDP/53 traffic enters the shared DNS path and retains its original destination.
crates/…/dot.rsExplains how encrypted guest DNS is terminated, inspected, and routed through the shared forwarder.
crates/…/ports.rsDefines which DNS-related ports are intercepted, refused, or left to normal egress policy.
crates/…/nameserver.rsExplains Unix host resolver discovery and the boundary between explicit nameservers and Windows system resolution.
crates/…/windows_resolver.rsExplains Windows host-default DNS routing through the system client and its current API path.
crates/…/compatibility.rsExplains the Windows compatibility path for hosts without the newer DNS query API and its wire-response conversion.
crates/…/mod.rsExposes the shared configuration and builder boundary used by the network model.
crates/…/builder.rsShows how network, DNS, strict hostname, NAT64, and TLS interception settings are composed and validated before runtime startup.
crates/…/types.rsDefines the durable and launch-ready network configuration boundary, including DNS defaults, strict hostname enforcement, NAT64 prefixes, TLS settings, and outbound proxy capability.
crates/…/resolver.rsExplains host-side resolution of source-backed network values and proxy credentials before launch.
crates/…/types.rsDefines the durable and resolved proxy forms, supported protocols, URI limits, and proxy selection boundary.
crates/…/http_connect.rsShows the TCP tunnel contract and authentication boundary for HTTP CONNECT proxies.
crates/…/socks.rsShows SOCKS4 and SOCKS5 TCP routing, SOCKS5 UDP relay support, and proxy-side domain resolution.
crates/…/mod.rsExposes proxy builders and resolved runtime types to the network model and runtime.
crates/…/tcp_connect_tests.rsDemonstrates that guest TCP state follows the host connection outcome and that cancelled proxy dials do not remain active.
crates/…/poll.rsPlaces gateway setup, DNS interception, and proxy selection in the network poll lifecycle.
crates/…/shared.rsHolds gateway addresses and the DNS-to-IP reverse index used by policy checks, including TTL and capacity behavior.
crates/…/lib.rsShows the model-only library boundary and the optional runtime exports for policy, DNS, and proxy enforcement.